Mercurial > hg > nginx
diff src/http/v3/ngx_http_v3_streams.c @ 8796:1fec68e322d0 quic
HTTP/3: client GOAWAY support.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 11 Jun 2021 13:24:24 +0300 |
parents | f4d3f5d93a82 |
children | 0ac25efb2da3 |
line wrap: on
line diff
--- 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_connecti 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;