diff options
author | Roman Arutyunyan <arut@nginx.com> | 2021-06-11 13:24:24 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2021-06-11 13:24:24 +0300 |
commit | 96e1db1c34a0c206463b86fb3400545f0147f476 (patch) | |
tree | 43caefb62aaf0468eeb18c912aebfe8bc8b44576 /src/http/v3/ngx_http_v3_streams.c | |
parent | 80a5227617924f666a39f8debf556ab525f420c9 (diff) | |
download | nginx-96e1db1c34a0c206463b86fb3400545f0147f476.tar.gz nginx-96e1db1c34a0c206463b86fb3400545f0147f476.zip |
HTTP/3: client GOAWAY support.
Diffstat (limited to 'src/http/v3/ngx_http_v3_streams.c')
-rw-r--r-- | src/http/v3/ngx_http_v3_streams.c | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ -704,6 +704,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) { ngx_queue_t *q; |