Browse Source

Sockets do not inherit non-blocking state in libowfat...

dynamic-accesslists
erdgeist 17 years ago
parent
commit
cf8d4fae1d
  1. 3
      opentracker.c

3
opentracker.c

@ -724,6 +724,9 @@ static void handle_accept( const int64 serversocket ) {
while( ( i = socket_accept4( serversocket, (char*)ip, &port) ) != -1 ) { while( ( i = socket_accept4( serversocket, (char*)ip, &port) ) != -1 ) {
/* Put fd into a non-blocking mode */
io_nonblock( i );
if( !io_fd( i ) || if( !io_fd( i ) ||
!( h = (struct http_data*)malloc( sizeof( struct http_data ) ) ) ) { !( h = (struct http_data*)malloc( sizeof( struct http_data ) ) ) ) {
io_close( i ); io_close( i );

Loading…
Cancel
Save