Mercurial > hg > nginx
changeset 8860:a2cef164a924 quic
QUIC: simplified stream fd initialization.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 21 Sep 2021 18:25:26 +0300 |
parents | 65191b9151a9 |
children | 630ecd703805 |
files | src/event/quic/ngx_event_quic_streams.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_streams.c Tue Sep 21 14:46:30 2021 +0300 +++ b/src/event/quic/ngx_event_quic_streams.c Tue Sep 21 18:25:26 2021 +0300 @@ -431,7 +431,7 @@ *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 @@ qs->connection = sc; sc->quic = qs; - sc->fd = c->fd; sc->shared = 1; sc->type = SOCK_STREAM; sc->pool = pool;