diff options
Diffstat (limited to 'src/plugins/hs_apps/vcl/sock_test_server.c')
-rw-r--r-- | src/plugins/hs_apps/vcl/sock_test_server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/hs_apps/vcl/sock_test_server.c b/src/plugins/hs_apps/vcl/sock_test_server.c index 843d80e7249..6e4d6ea17fd 100644 --- a/src/plugins/hs_apps/vcl/sock_test_server.c +++ b/src/plugins/hs_apps/vcl/sock_test_server.c @@ -284,6 +284,8 @@ new_client (void) stfail ("new_client accept()"); stinf ("Got a connection -- fd = %d (0x%08x)!\n", client_fd, client_fd); + if (fcntl (client_fd, F_SETFL, O_NONBLOCK) < 0) + stfail ("fcntl()"); conn->fd = client_fd; |