nginx-quic & reload

Sergey Kandaurov pluknet at nginx.com
Mon Jun 15 23:57:46 UTC 2020


> On 12 Jun 2020, at 12:41, Jan Prachař <jan.prachar at gmail.com> wrote:
> 
> Hello, I checked code at the nginx-quic repo and I can't see how the
> following problem is addressed.
> 
> When nginx reloads config, new workers are created and they inhertis
> receiving sockets from the old workers. That means that the new workers
> will start processing packets of the quic connections of the old
> workers. But the new workers lack context for them, so they will ignore
> the packets and quic connection will timeout, right?

Correct.

> A similar problem exists when a binary is changed.
> 
> Do I miss something or will it be solved in the future?

This could be handled by a combination of CONNECTION_CLOSE
in old workers and Stateless Reset in new workers.

-- 
Sergey Kandaurov



More information about the nginx-devel mailing list