vcl: fix epoll out evt on connect 49/38449/3
authorFlorin Coras <fcoras@cisco.com>
Wed, 8 Mar 2023 22:14:38 +0000 (14:14 -0800)
committerDave Barach <vpp@barachs.net>
Thu, 9 Mar 2023 18:04:06 +0000 (18:04 +0000)
Make sure session has a tx fifo.

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ibde40645b401ca0255da298ea4ba691ee924a2d2

src/vcl/vppcom.c

index 189e16a..0f824dc 100644 (file)
@@ -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 (