Mercurial > hg > nginx
changeset 8228:ac41c53e446d quic
Fixed HTTP/3 server stream creation.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 18 Mar 2020 14:10:44 +0300 |
parents | 36af1dab65e5 |
children | cfc429911c0d |
files | src/http/v3/ngx_http_v3_streams.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3_streams.c Wed Mar 18 14:09:50 2020 +0300 +++ b/src/http/v3/ngx_http_v3_streams.c Wed Mar 18 14:10:44 2020 +0300 @@ -321,7 +321,7 @@ ngx_pool_cleanup_t *cln; ngx_http_v3_uni_stream_t *us; - sc = ngx_quic_create_uni_stream(c->qs->parent); + sc = ngx_quic_create_uni_stream(c); if (sc == NULL) { return NULL; } @@ -369,8 +369,8 @@ h3c = c->qs->parent->data; - if (h3c->server_encoder == NULL) { - h3c->server_encoder = ngx_http_v3_create_uni_stream(c, + if (h3c->server_control == NULL) { + h3c->server_control = ngx_http_v3_create_uni_stream(c, NGX_HTTP_V3_STREAM_CONTROL); } @@ -401,8 +401,8 @@ h3c = c->qs->parent->data; - if (h3c->server_encoder == NULL) { - h3c->server_encoder = ngx_http_v3_create_uni_stream(c, + if (h3c->server_decoder == NULL) { + h3c->server_decoder = ngx_http_v3_create_uni_stream(c, NGX_HTTP_V3_STREAM_DECODER); }