[PATCH 10 of 10] QUIC: application init() callback

Roman Arutyunyan arut at nginx.com
Thu Oct 20 14:33:22 UTC 2022


Hi,

On Thu, Oct 20, 2022 at 03:51:54PM +0400, Sergey Kandaurov wrote:
> On Thu, Sep 08, 2022 at 01:06:37PM +0400, Roman Arutyunyan wrote:
> > # HG changeset patch
> > # User Roman Arutyunyan <arut at nginx.com>
> > # Date 1662627905 -14400
> > #      Thu Sep 08 13:05:05 2022 +0400
> > # Branch quic
> > # Node ID 8e58a27b320807aae00194b82e2c997287e3ad42
> > # Parent  861d6897151fe6773898db6cfdb36f56403302c5
> > QUIC: application init() callback.
> > 
> > It's called after handshake completion or prior to the first early data stream
> > creation.  The callback should initialize application-level data before
> > creating streams.
> > 
> > HTTP/3 callback implementation sets keepalive timer and sends SETTINGS.
> > 
> > Also, this allows to limit max handshake time in ngx_http_v3_init_stream().
> 
> Also brings header timeout (to limit handshake time)
> and keepalive timeout in hq mode.

Looks like for hq keepalive timeout is now set in ngx_http_v3_init_stream()
when main connection is created and in ngx_http_v3_init() at the end of
handshake.  After that it's neither set nor deleted.  The code which does this,
only works for http/3, but not hq.  This should be addressed.

[..]

--
Roman



More information about the nginx-devel mailing list