From 1a0fe0eeeec8926a1e0777ea214960c4a8c205ab Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 11 Apr 2004 16:42:23 +0000 Subject: More fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@531 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/connection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/connection.cpp b/src/connection.cpp index 1296e7d93..3adaf0d08 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -134,12 +134,12 @@ bool connection::SendPacket(char *message, char* host, int port, long ourkey) this->state = STATE_WAIT_FOR_ACK; - socklen_t host_address_size; // host_address remains unchanged. we only want to receive from where we just sent the packet to. // retry the packet up to 5 times for (int retries = 0; retries < 5; retries++) { + socklen_t host_address_size; host_address.sin_family=AF_INET; host_address_size=sizeof(host_address); @@ -153,7 +153,7 @@ bool connection::SendPacket(char *message, char* host, int port, long ourkey) { fd_set sfd; timeval tval; - tval.tv_usec = 10; + tval.tv_usec = 100; tval.tv_sec = 0; FD_ZERO(&sfd); FD_SET(fd,&sfd); @@ -162,7 +162,7 @@ bool connection::SendPacket(char *message, char* host, int port, long ourkey) } if (cycles >= 10) { - log(DEFAULT,"ERROR! connection::SendPacket() waited >100 nanosecs for an ACK. Will resend up to 5 times"); + log(DEFAULT,"ERROR! connection::SendPacket() waited >1000 nanosecs for an ACK. Will resend up to 5 times"); } else { -- cgit v1.2.3