From 96e1db1c34a0c206463b86fb3400545f0147f476 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Fri, 11 Jun 2021 13:24:24 +0300 Subject: HTTP/3: client GOAWAY support. --- src/http/v3/ngx_http_v3_streams.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/http/v3/ngx_http_v3_streams.c') diff --git a/src/http/v3/ngx_http_v3_streams.c b/src/http/v3/ngx_http_v3_streams.c index 0e55dbe0d..8b2047f43 100644 --- a/src/http/v3/ngx_http_v3_streams.c +++ b/src/http/v3/ngx_http_v3_streams.c @@ -703,6 +703,21 @@ ngx_http_v3_set_max_push_id(ngx_connection_t *c, uint64_t max_push_id) } +ngx_int_t +ngx_http_v3_goaway(ngx_connection_t *c, uint64_t push_id) +{ + ngx_http_v3_session_t *h3c; + + h3c = ngx_http_v3_get_session(c); + + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, "http3 GOAWAY:%uL", push_id); + + h3c->goaway_push_id = push_id; + + return NGX_OK; +} + + ngx_int_t ngx_http_v3_cancel_push(ngx_connection_t *c, uint64_t push_id) { -- cgit