vcl: repatch "align the RST behaviour with kernel" 79/37279/1
authorYacan Liu <liuyacan@corp.netease.com>
Mon, 26 Sep 2022 08:41:32 +0000 (16:41 +0800)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 27 Sep 2022 06:09:28 +0000 (06:09 +0000)
The previous patch[37164] was a bit flawed.

Type: fix
Signed-off-by: Yacan Liu <liuyacan@corp.netease.com>
Change-Id: Ia9d8b9c7853e8f4b960ce7de26d0384243deb667
(cherry picked from commit ab15770ec63367498dd277c83a577a52594953e8)

src/vcl/vppcom.c

index 9644973..d217058 100644 (file)
@@ -3125,7 +3125,7 @@ vcl_epoll_wait_handle_mq_event (vcl_worker_t * wrk, session_event_t * e,
       if ((EPOLLRDHUP & session_events) &&
          (s->flags & VCL_SESSION_F_RD_SHUTDOWN))
        {
-         events[*num_ev].events = EPOLLRDHUP;
+         events[*num_ev].events |= EPOLLRDHUP;
        }
       if ((EPOLLIN & session_events) && (s->flags & VCL_SESSION_F_RD_SHUTDOWN))
        {