vcl: always report EPOLLHUP/EPOLLRDHUP on close
Type: fix Change-Id: I3d24a7973c7113ffeb9109e89cda7fa960e73a5b Signed-off-by: Florin Coras <fcoras@cisco.com> (cherry picked from commit ddb90a063cb3fa797257d8a632cba8cf2a01a455)
This commit is contained in:
parent
496eba6bfe
commit
c366be8647
@ -2676,8 +2676,6 @@ vcl_epoll_wait_handle_mq_event (vcl_worker_t * wrk, session_event_t * e,
|
||||
if (!session)
|
||||
break;
|
||||
session_events = session->vep.ev.events;
|
||||
if (!((EPOLLHUP | EPOLLRDHUP) & session_events))
|
||||
break;
|
||||
add_event = 1;
|
||||
events[*num_ev].events |= EPOLLHUP | EPOLLRDHUP;
|
||||
session_evt_data = session->vep.ev.data.u64;
|
||||
@ -2687,8 +2685,6 @@ vcl_epoll_wait_handle_mq_event (vcl_worker_t * wrk, session_event_t * e,
|
||||
if (!(session = vcl_session_get (wrk, sid)))
|
||||
break;
|
||||
session_events = session->vep.ev.events;
|
||||
if (!((EPOLLHUP | EPOLLRDHUP) & session_events))
|
||||
break;
|
||||
add_event = 1;
|
||||
events[*num_ev].events |= EPOLLHUP | EPOLLRDHUP;
|
||||
session_evt_data = session->vep.ev.data.u64;
|
||||
|
Loading…
x
Reference in New Issue
Block a user