diff options
author | Florin Coras <fcoras@cisco.com> | 2020-01-22 07:32:12 -0800 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-08-12 15:59:46 +0000 |
commit | c366be8647f22bc89aefb5960400a04e71afcdde (patch) | |
tree | f28c987ce0c1f20a18de9f93bbdf4c5a767a7557 /src | |
parent | 496eba6bfeb9c44d6bee2ce0a0199a9e5f801af3 (diff) |
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)
Diffstat (limited to 'src')
-rw-r--r-- | src/vcl/vppcom.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index d27201ad27a..d989873163c 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -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; |