Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic_streams.c @ 8842:486c6a9be111 quic
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().
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 06 Sep 2021 16:59:00 +0300 |
parents | 1f7f98638dc2 |
children | 9ae239d2547d |
comparison
equal
deleted
inserted
replaced
8841:1f7f98638dc2 | 8842:486c6a9be111 |
---|---|
438 } | 438 } |
439 | 439 |
440 qs->connection = sc; | 440 qs->connection = sc; |
441 | 441 |
442 sc->quic = qs; | 442 sc->quic = qs; |
443 sc->fd = c->fd; | |
444 sc->shared = 1; | |
443 sc->type = SOCK_STREAM; | 445 sc->type = SOCK_STREAM; |
444 sc->pool = pool; | 446 sc->pool = pool; |
445 sc->ssl = c->ssl; | 447 sc->ssl = c->ssl; |
446 sc->sockaddr = c->sockaddr; | 448 sc->sockaddr = c->sockaddr; |
447 sc->listening = c->listening; | 449 sc->listening = c->listening; |