From 28de135098898004951a72d9d2fb2c2daf1d1242 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 17 Oct 2007 21:13:13 +0000 Subject: io_timeout is absolute, not relative :/ --- opentracker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opentracker.c') diff --git a/opentracker.c b/opentracker.c index bfe030c..0c9b01e 100644 --- a/opentracker.c +++ b/opentracker.c @@ -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, 2 * OT_POOLS_TIMEOUT ); io_timeout( s, t ); + taia_uint( &t, (unsigned int)(g_now + 2 * OT_POOLS_TIMEOUT) ); 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, 2 * OT_POOLS_TIMEOUT ); io_timeout( s, t ); + taia_uint( &t, (unsigned int)(g_now + 2 * OT_POOLS_TIMEOUT) ); io_timeout( s, t ); io_dontwantread( s ); io_wantwrite( s ); } -- cgit v1.2.3