summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-03-08 14:14:38 -0800
committerDave Barach <vpp@barachs.net>2023-03-09 18:04:06 +0000
commit436c7badcdd9bcc7047adf1a59ef317a031da413 (patch)
treee5081f2dda596f9c72ded0f23eec0a0b5d0d77a2 /src
parenta468fd7e586e93989355648778edb912ef258f23 (diff)
vcl: fix epoll out evt on connect
Make sure session has a tx fifo. Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ibde40645b401ca0255da298ea4ba691ee924a2d2
Diffstat (limited to 'src')
-rw-r--r--src/vcl/vppcom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index 189e16a852c..0f824dcf621 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -3093,7 +3093,7 @@ vcl_epoll_wait_handle_mq_event (vcl_worker_t * wrk, session_event_t * e,
break;
session_events = s->vep.ev.events;
/* Generate EPOLLOUT because there's no connected event */
- if (!(EPOLLOUT & session_events))
+ if (!(EPOLLOUT & session_events) || !s->tx_fifo)
break;
/* We didn't have a fifo when the event was added */
svm_fifo_add_want_deq_ntf (