summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-10-18 20:17:49 -0700
committerDave Barach <openvpp@barachs.net>2020-10-19 22:45:56 +0000
commit1bc919e9f3cc97662ed8ff1034b485b87c706358 (patch)
tree73f6ff944fc80b58b0a39d975d74887520d2ba68 /src/plugins
parent402606c96ba90f3b14047e63765c08e20b9bbf7f (diff)
vcl: cleanup read and write ready
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ib6afedf24c7bd7cc0d98bb324a83517030a05aa7
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/hs_apps/vcl/sock_test_server.c2
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;