Browse Source

Tell libowfat about EWOULDBLOCK conditions

dynamic-accesslists
Dirk Engling 7 years ago
parent
commit
d6d4fb0668
  1. 6
      opentracker.c

6
opentracker.c

@ -239,6 +239,7 @@ static void handle_accept( const int64 serversocket ) { @@ -239,6 +239,7 @@ static void handle_accept( const int64 serversocket ) {
tai_unix( &(t.sec), (g_now_seconds + OT_CLIENT_TIMEOUT) );
io_timeout( sock, t );
}
io_eagain(serversocket);
}
static void * server_mainloop( void * args ) {
@ -269,9 +270,10 @@ static void * server_mainloop( void * args ) { @@ -269,9 +270,10 @@ static void * server_mainloop( void * args ) {
handle_accept( sock );
else if( (intptr_t)cookie == FLAG_UDP )
handle_udp6( sock, &ws );
else if( (intptr_t)cookie == FLAG_SELFPIPE )
else if( (intptr_t)cookie == FLAG_SELFPIPE ) {
io_tryread( sock, ws.inbuf, G_INBUF_SIZE );
else
fprintf(stderr, "pipe\n");
} else
handle_read( sock, &ws );
}

Loading…
Cancel
Save