diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-11 16:42:23 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-11 16:42:23 +0000 |
commit | 1a0fe0eeeec8926a1e0777ea214960c4a8c205ab (patch) | |
tree | 68e11626d0153516c0d9964b4d8103e766e8b211 | |
parent | e8fffa350ed500ee063a1af5b105576e59ff669b (diff) |
More fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@531 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/connection.cpp | 6 |
1 files 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 { |