[PATCH 2 of 4] QUIC: eliminated timeout handling in listen connection read event

Roman Arutyunyan arut at nginx.com
Tue Jan 17 11:24:00 UTC 2023


# HG changeset patch
# User Roman Arutyunyan <arut at nginx.com>
# Date 1670428974 0
#      Wed Dec 07 16:02:54 2022 +0000
# Branch quic
# Node ID cc74c21cddd87762c03c5ce5a9976b5f23d8823f
# Parent  7051cace147700a3e5456846dd4eadfdcadcd0c8
QUIC: eliminated timeout handling in listen connection read event.

The timeout is never set for QUIC.

diff --git a/src/event/quic/ngx_event_quic_udp.c b/src/event/quic/ngx_event_quic_udp.c
--- a/src/event/quic/ngx_event_quic_udp.c
+++ b/src/event/quic/ngx_event_quic_udp.c
@@ -40,14 +40,6 @@ ngx_quic_recvmsg(ngx_event_t *ev)
     u_char             msg_control[CMSG_SPACE(sizeof(ngx_addrinfo_t))];
 #endif
 
-    if (ev->timedout) {
-        if (ngx_enable_accept_events((ngx_cycle_t *) ngx_cycle) != NGX_OK) {
-            return;
-        }
-
-        ev->timedout = 0;
-    }
-
     ecf = ngx_event_get_conf(ngx_cycle->conf_ctx, ngx_event_core_module);
 
     if (!(ngx_event_flags & NGX_USE_KQUEUE_EVENT)) {


More information about the nginx-devel mailing list