From 465362e0664a4fe31cb5df8e757bc99b3c68f5fa Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Mon, 6 Sep 2021 16:59:00 +0300 Subject: 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(). --- src/event/quic/ngx_event_quic_streams.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/event') 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; -- cgit