Vladimir Homutov via nginx-devel
May 30, 2022 01:26PM
On Mon, May 30, 2022 at 06:55:15PM +0800, 朱宇 wrote:
> Hi,
>
>
> in "src/event/quic/bpf/ngx_quic_reuseport_helper.c", if can not find socket by dcid (cookie), udp packet will be distributed by kernel.
>
>
> so when nginx-quic reload, how to avoid new quic connecion packet distributed to old workers which result in old worker processes can't exit?
>
>
> thanks

Old (exiting) workers stop accepting new connections and ignores such
packet or replies with 'retry' if configured. The sender assumes that the
packet was lost or gets the 'retry' packet and repeats send. Hopefully,
the next time old worker will already exit and the packet will be
delivered to new worker. This is not ideal, but this is how it works now.

See http://hg.nginx.org/nginx-quic/file/quic/src/event/quic/ngx_event_quic.c#l913

_______________________________________________
nginx-devel mailing list -- nginx-devel@nginx.org
To unsubscribe send an email to nginx-devel-leave@nginx.org
Subject Author Views Posted

how to avoid new quic connection distributed to old workers when nginx-quic reload

朱宇 253 May 30, 2022 06:56AM

Re: how to avoid new quic connection distributed to old workers when nginx-quic reload

Vladimir Homutov via nginx-devel 216 May 30, 2022 01:26PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 313
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready