]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Increase send timeout. Also use an own variable for that.
authorerdgeist <>
Wed, 17 Oct 2007 22:50:48 +0000 (22:50 +0000)
committererdgeist <>
Wed, 17 Oct 2007 22:50:48 +0000 (22:50 +0000)
opentracker.c

index 0c9b01e6ee546f6dbdd4db5b862e3578b5455c0f..b77773d5ebbfa6e54100168f5f23a8c3395db8af 100644 (file)
@@ -156,7 +156,7 @@ static void sendmmapdata( const int64 s, char *buffer, size_t size ) {
 
   /* writeable sockets timeout after twice the pool timeout
      which defaults to 5 minutes (e.g. after 10 minutes) */
-  taia_uint( &t, (unsigned int)(g_now + 2 * OT_POOLS_TIMEOUT) ); io_timeout( s, t );
+  taia_uint( &t, (unsigned int)(g_now + OT_CLIENT_TIMEOUT_SEND) ); io_timeout( s, t );
   io_dontwantread( s );
   io_wantwrite( s );
 }
@@ -187,7 +187,7 @@ static void senddata( const int64 s, char *buffer, size_t size ) {
 
     /* writeable sockets timeout after twice the pool timeout
        which defaults to 5 minutes (e.g. after 10 minutes) */
-    taia_uint( &t, (unsigned int)(g_now + 2 * OT_POOLS_TIMEOUT) ); io_timeout( s, t );
+    taia_uint( &t, (unsigned int)(g_now + OT_CLIENT_TIMEOUT_SEND) ); io_timeout( s, t );
     io_dontwantread( s );
     io_wantwrite( s );
   }