diff options
author | Roman Arutyunyan <arut@nginx.com> | 2020-03-18 14:10:44 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2020-03-18 14:10:44 +0300 |
commit | d36684447c0c9f2e2324f9dc43e534ccc7edec18 (patch) | |
tree | 582653a4440e159e48500f6c16c85036b62a22cf | |
parent | 85430505feb676dd45ca65ea75a0ccd0ed32ea3a (diff) | |
download | nginx-d36684447c0c9f2e2324f9dc43e534ccc7edec18.tar.gz nginx-d36684447c0c9f2e2324f9dc43e534ccc7edec18.zip |
Fixed HTTP/3 server stream creation.
-rw-r--r-- | src/http/v3/ngx_http_v3_streams.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/http/v3/ngx_http_v3_streams.c b/src/http/v3/ngx_http_v3_streams.c index 18e38a68d..6a5610b9a 100644 --- a/src/http/v3/ngx_http_v3_streams.c +++ b/src/http/v3/ngx_http_v3_streams.c @@ -321,7 +321,7 @@ ngx_http_v3_create_uni_stream(ngx_connection_t *c, ngx_uint_t type) 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 @@ ngx_http_v3_get_control(ngx_connection_t *c) 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 @@ ngx_http_v3_get_decoder(ngx_connection_t *c) 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); } |