vcl: avoid duplicate tx events with epoll lt
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ic6436426ead561e47fb77ed9a95afbd85f2998ae
(cherry picked from commit acecd0d9c2
)
This commit is contained in:

committed by
Andrew Yourtchenko

parent
f7687220e0
commit
16912d23ab
@ -3058,7 +3058,8 @@ vcl_epoll_wait_handle_mq_event (vcl_worker_t * wrk, session_event_t * e,
|
||||
svm_fifo_reset_has_deq_ntf (vcl_session_is_ct (s) ? s->ct_tx_fifo :
|
||||
s->tx_fifo);
|
||||
session_events = s->vep.ev.events;
|
||||
if (!(EPOLLOUT & session_events))
|
||||
if (!(EPOLLOUT & session_events) ||
|
||||
(s->vep.lt_next != VCL_INVALID_SESSION_INDEX))
|
||||
break;
|
||||
add_event = 1;
|
||||
events[*num_ev].events = EPOLLOUT;
|
||||
|
Reference in New Issue
Block a user