Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vcl: cleanup read and write ready
[vpp.git]
/
src
/
plugins
/
hs_apps
/
vcl
/
sock_test_server.c
diff --git
a/src/plugins/hs_apps/vcl/sock_test_server.c
b/src/plugins/hs_apps/vcl/sock_test_server.c
index
843d80e
..
6e4d6ea
100644
(file)
--- 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;