diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2021-09-06 16:59:00 +0300 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2021-09-06 16:59:00 +0300 |
| commit | 465362e0664a4fe31cb5df8e757bc99b3c68f5fa (patch) | |
| tree | 027033671c15f503558322d00bf4aaab38f2bd13 /src/event | |
| parent | 9985ab86bf0eb3a58f26d0396c1828d4a70faf03 (diff) | |
| download | nginx-465362e0664a4fe31cb5df8e757bc99b3c68f5fa.tar.gz nginx-465362e0664a4fe31cb5df8e757bc99b3c68f5fa.tar.bz2 | |
QUIC: store QUIC connection fd in stream fake connection.
Previously it had -1 as fd. This fixes proxying, which relies on downstream
connection having a real fd. Also, this reduces diff to the default branch for
ngx_close_connection().
Diffstat (limited to 'src/event')
| -rw-r--r-- | src/event/quic/ngx_event_quic_streams.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic_streams.c b/src/event/quic/ngx_event_quic_streams.c index ef8a9df47..a4f4cb57c 100644 --- a/src/event/quic/ngx_event_quic_streams.c +++ b/src/event/quic/ngx_event_quic_streams.c @@ -440,6 +440,8 @@ 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; sc->ssl = c->ssl; |
