diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2021-09-21 18:25:26 +0300 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2021-09-21 18:25:26 +0300 |
| commit | b2c8e690cee3c450ffb79438f291e639c7891502 (patch) | |
| tree | b036e6397cdf32ebecb790d42a4c7f680c951372 /src | |
| parent | af2121267b9d59c65b5cb0c3df34b90400f6f87f (diff) | |
| download | nginx-b2c8e690cee3c450ffb79438f291e639c7891502.tar.gz nginx-b2c8e690cee3c450ffb79438f291e639c7891502.tar.bz2 | |
QUIC: simplified stream fd initialization.
Diffstat (limited to 'src')
| -rw-r--r-- | src/event/quic/ngx_event_quic_streams.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/event/quic/ngx_event_quic_streams.c b/src/event/quic/ngx_event_quic_streams.c index 69c7220cf..9473f99b4 100644 --- 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 *c, uint64_t id) *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 *c, uint64_t id) qs->connection = sc; sc->quic = qs; - sc->fd = c->fd; sc->shared = 1; sc->type = SOCK_STREAM; sc->pool = pool; |
