vppinfra: explicit blocking mode for sock connects

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I3a33230de13fef613dc9523cf24a9968d200c2e5
This commit is contained in:
Florin Coras
2021-05-26 10:21:10 -07:00
committed by Dave Wallace
parent 46cb4c4094
commit 57e0af924b
4 changed files with 9 additions and 5 deletions

View File

@ -583,9 +583,10 @@ memif_process (vlib_main_t * vm, vlib_node_runtime_t * rt, vlib_frame_t * f)
{
clib_memset (sock, 0, sizeof(clib_socket_t));
sock->config = (char *) msf->filename;
sock->flags = CLIB_SOCKET_F_IS_CLIENT| CLIB_SOCKET_F_SEQPACKET;
sock->flags = CLIB_SOCKET_F_IS_CLIENT | CLIB_SOCKET_F_SEQPACKET |
CLIB_SOCKET_F_BLOCKING;
if ((err = clib_socket_init (sock)))
if ((err = clib_socket_init (sock)))
{
clib_error_free (err);
}