mirror of
git://erdgeist.org/opentracker
synced 2025-03-01 04:21:30 +08:00
Increase send timeout. Also use an own variable for that.
This commit is contained in:
parent
28de135098
commit
32f17413fa
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user