diff options
-rw-r--r-- | opentracker.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/opentracker.c b/opentracker.c index 642815a..6b5902e 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -724,6 +724,9 @@ static void handle_accept( const int64 serversocket ) { | |||
724 | 724 | ||
725 | while( ( i = socket_accept4( serversocket, (char*)ip, &port) ) != -1 ) { | 725 | while( ( i = socket_accept4( serversocket, (char*)ip, &port) ) != -1 ) { |
726 | 726 | ||
727 | /* Put fd into a non-blocking mode */ | ||
728 | io_nonblock( i ); | ||
729 | |||
727 | if( !io_fd( i ) || | 730 | if( !io_fd( i ) || |
728 | !( h = (struct http_data*)malloc( sizeof( struct http_data ) ) ) ) { | 731 | !( h = (struct http_data*)malloc( sizeof( struct http_data ) ) ) ) { |
729 | io_close( i ); | 732 | io_close( i ); |