diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2022-11-30 12:51:15 +0400 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2022-11-30 12:51:15 +0400 |
| commit | 64ccdf45288c46b5f8e12426d3802c44d789d115 (patch) | |
| tree | 40513d16c8d8f9571e336ef354437b50c60b1a33 /src/event/quic/ngx_event_quic.h | |
| parent | 8a1deaca78d65f4db82f856e22dcf879d1cec479 (diff) | |
| download | nginx-64ccdf45288c46b5f8e12426d3802c44d789d115.tar.gz nginx-64ccdf45288c46b5f8e12426d3802c44d789d115.tar.bz2 | |
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().
Diffstat (limited to 'src/event/quic/ngx_event_quic.h')
| -rw-r--r-- | src/event/quic/ngx_event_quic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic.h b/src/event/quic/ngx_event_quic.h index 335d925cb..d13adbdc9 100644 --- a/src/event/quic/ngx_event_quic.h +++ b/src/event/quic/ngx_event_quic.h @@ -28,6 +28,7 @@ #define NGX_QUIC_STREAM_UNIDIRECTIONAL 0x02 +typedef ngx_int_t (*ngx_quic_init_pt)(ngx_connection_t *c); typedef void (*ngx_quic_shutdown_pt)(ngx_connection_t *c); @@ -77,6 +78,7 @@ typedef struct { ngx_int_t stream_reject_code_uni; ngx_int_t stream_reject_code_bidi; + ngx_quic_init_pt init; ngx_quic_shutdown_pt shutdown; u_char av_token_key[NGX_QUIC_AV_KEY_LEN]; |
