diff options
| author | erdgeist <> | 2007-10-17 21:13:13 +0000 |
|---|---|---|
| committer | erdgeist <> | 2007-10-17 21:13:13 +0000 |
| commit | 28de135098898004951a72d9d2fb2c2daf1d1242 (patch) | |
| tree | 8cfd4a5f3b63966cb5352671ada001953bcb30b9 | |
| parent | d1c57d90dd965a7b8556e430a937add19e713a5e (diff) | |
io_timeout is absolute, not relative :/
| -rw-r--r-- | opentracker.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 ) { | |||
| 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, 2 * OT_POOLS_TIMEOUT ); io_timeout( s, t ); | 159 | taia_uint( &t, (unsigned int)(g_now + 2 * OT_POOLS_TIMEOUT) ); 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, 2 * OT_POOLS_TIMEOUT ); io_timeout( s, t ); | 190 | taia_uint( &t, (unsigned int)(g_now + 2 * OT_POOLS_TIMEOUT) ); io_timeout( s, t ); |
| 191 | io_dontwantread( s ); | 191 | io_dontwantread( s ); |
| 192 | io_wantwrite( s ); | 192 | io_wantwrite( s ); |
| 193 | } | 193 | } |
