summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2007-10-17 22:50:48 +0000
committererdgeist <>2007-10-17 22:50:48 +0000
commit32f17413fa828713a2cbc9cc2e1f1b4c430f12db (patch)
treed814f327623732586bcf280334f71aa9d9a81614
parent28de135098898004951a72d9d2fb2c2daf1d1242 (diff)
Increase send timeout. Also use an own variable for that.
-rw-r--r--opentracker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c
index 0c9b01e..b77773d 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -156,7 +156,7 @@ static void sendmmapdata( const int64 s, char *buffer, size_t size ) {
156 156
157 /* writeable sockets timeout after twice the pool timeout 157 /* writeable sockets timeout after twice the pool timeout
158 which defaults to 5 minutes (e.g. after 10 minutes) */ 158 which defaults to 5 minutes (e.g. after 10 minutes) */
159 taia_uint( &t, (unsigned int)(g_now + 2 * OT_POOLS_TIMEOUT) ); io_timeout( s, t ); 159 taia_uint( &t, (unsigned int)(g_now + OT_CLIENT_TIMEOUT_SEND) ); io_timeout( s, t );
160 io_dontwantread( s ); 160 io_dontwantread( s );
161 io_wantwrite( s ); 161 io_wantwrite( s );
162} 162}
@@ -187,7 +187,7 @@ static void senddata( const int64 s, char *buffer, size_t size ) {
187 187
188 /* writeable sockets timeout after twice the pool timeout 188 /* writeable sockets timeout after twice the pool timeout
189 which defaults to 5 minutes (e.g. after 10 minutes) */ 189 which defaults to 5 minutes (e.g. after 10 minutes) */
190 taia_uint( &t, (unsigned int)(g_now + 2 * OT_POOLS_TIMEOUT) ); io_timeout( s, t ); 190 taia_uint( &t, (unsigned int)(g_now + OT_CLIENT_TIMEOUT_SEND) ); io_timeout( s, t );
191 io_dontwantread( s ); 191 io_dontwantread( s );
192 io_wantwrite( s ); 192 io_wantwrite( s );
193 } 193 }