aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl/vcl_sapi.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-05-26 10:21:10 -0700
committerDave Wallace <dwallacelf@gmail.com>2021-05-26 18:47:41 +0000
commit57e0af924b8b48cf39b1020bf11f10e3c227f22c (patch)
tree0f18adca9384fe9f8bf759bd795442baef2b4c17 /src/vcl/vcl_sapi.c
parent46cb4c40941e06d726c116975c321603766d24bd (diff)
vppinfra: explicit blocking mode for sock connects
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I3a33230de13fef613dc9523cf24a9968d200c2e5
Diffstat (limited to 'src/vcl/vcl_sapi.c')
-rw-r--r--src/vcl/vcl_sapi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vcl/vcl_sapi.c b/src/vcl/vcl_sapi.c
index 14401da9d57..84d56af576b 100644
--- a/src/vcl/vcl_sapi.c
+++ b/src/vcl/vcl_sapi.c
@@ -23,7 +23,8 @@ vcl_api_connect_app_socket (vcl_worker_t * wrk)
int rv = 0;
cs->config = (char *) vcm->cfg.vpp_app_socket_api;
- cs->flags = CLIB_SOCKET_F_IS_CLIENT | CLIB_SOCKET_F_SEQPACKET;
+ cs->flags =
+ CLIB_SOCKET_F_IS_CLIENT | CLIB_SOCKET_F_SEQPACKET | CLIB_SOCKET_F_BLOCKING;
wrk->vcl_needs_real_epoll = 1;