]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
More fixes
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 11 Apr 2004 16:42:23 +0000 (16:42 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 11 Apr 2004 16:42:23 +0000 (16:42 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@531 e03df62e-2008-0410-955e-edbf42e46eb7

src/connection.cpp

index 1296e7d93ec1397b50de06337f559f2492db7306..3adaf0d08df612eda0db835d8c8bcbb88aec52ca 100644 (file)
@@ -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
                {