# HG changeset patch # User Roman Arutyunyan # Date 1632237926 -10800 # Node ID a2cef164a924fb0b5516298d8a2bdd28db75e18a # Parent 65191b9151a9d6978357cfbf41528e2fa05f12df QUIC: simplified stream fd initialization. diff --git a/src/event/quic/ngx_event_quic_streams.c b/src/event/quic/ngx_event_quic_streams.c --- a/src/event/quic/ngx_event_quic_streams.c +++ b/src/event/quic/ngx_event_quic_streams.c @@ -431,7 +431,7 @@ ngx_quic_create_stream(ngx_connection_t *log = *c->log; pool->log = log; - sc = ngx_get_connection(-1, log); + sc = ngx_get_connection(c->fd, log); if (sc == NULL) { ngx_destroy_pool(pool); return NULL; @@ -440,7 +440,6 @@ ngx_quic_create_stream(ngx_connection_t qs->connection = sc; sc->quic = qs; - sc->fd = c->fd; sc->shared = 1; sc->type = SOCK_STREAM; sc->pool = pool;