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
This commit is contained in:
Florin Coras
2023-03-08 14:14:38 -08:00
committed by Dave Barach
parent a468fd7e58
commit 436c7badcd

View 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 (