diff options
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 8b4155d15a..b0ca98322f 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -180,6 +180,8 @@ int connection_handle_listener_read(connection_t *conn, int new_type, int new_st } log(LOG_DEBUG,"Connection accepted on socket %d.",news); + fcntl(news, F_SETFL, O_NONBLOCK); /* set s to non-blocking */ + newconn = connection_new(new_type); newconn->s = news; |