summaryrefslogtreecommitdiffhomepage
path: root/src/event/quic/ngx_event_quic.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2022-11-30 12:51:15 +0400
committerRoman Arutyunyan <arut@nginx.com>2022-11-30 12:51:15 +0400
commit64ccdf45288c46b5f8e12426d3802c44d789d115 (patch)
tree40513d16c8d8f9571e336ef354437b50c60b1a33 /src/event/quic/ngx_event_quic.h
parent8a1deaca78d65f4db82f856e22dcf879d1cec479 (diff)
downloadnginx-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.h2
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];