mirror of
git://erdgeist.org/opentracker
synced 2025-01-15 01:12:07 +00:00
The last experiment failed. No more accept deferral
This commit is contained in:
parent
d276addb7a
commit
5aa41e9d82
@ -742,7 +742,6 @@ static void handle_accept( const int64 serversocket ) {
|
|||||||
tai_unix( &(t.sec), (g_now + OT_CLIENT_TIMEOUT) );
|
tai_unix( &(t.sec), (g_now + OT_CLIENT_TIMEOUT) );
|
||||||
io_timeout( i, t );
|
io_timeout( i, t );
|
||||||
|
|
||||||
handle_read( i );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( errno == EAGAIN )
|
if( errno == EAGAIN )
|
||||||
@ -895,9 +894,6 @@ static void ot_try_bind( char ip[4], uint16 port, int is_tcp ) {
|
|||||||
if( !io_fd( s ) )
|
if( !io_fd( s ) )
|
||||||
panic( "io_fd" );
|
panic( "io_fd" );
|
||||||
|
|
||||||
if( is_tcp )
|
|
||||||
socket_deferaccept( s, DATAIN );
|
|
||||||
|
|
||||||
io_setcookie( s, is_tcp ? FLAG_TCP : FLAG_UDP );
|
io_setcookie( s, is_tcp ? FLAG_TCP : FLAG_UDP );
|
||||||
|
|
||||||
io_wantread( s );
|
io_wantread( s );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user