Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic_streams.c @ 9063:e3760b9b7c8e quic
HTTP/3: fixed $connection_time.
Previously, start_time wasn't set for a new stream.
The fix is to derive it from the parent connection.
Also it's used to simplify tracking keepalive_time.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 10 Jan 2023 17:59:16 +0400 |
parents | b0c2234aaa9f |
children | 35e27117b593 |
comparison
equal
deleted
inserted
replaced
9062:987bee4363d1 | 9063:e3760b9b7c8e |
---|---|
680 sc->listening = c->listening; | 680 sc->listening = c->listening; |
681 sc->addr_text = c->addr_text; | 681 sc->addr_text = c->addr_text; |
682 sc->local_sockaddr = c->local_sockaddr; | 682 sc->local_sockaddr = c->local_sockaddr; |
683 sc->local_socklen = c->local_socklen; | 683 sc->local_socklen = c->local_socklen; |
684 sc->number = ngx_atomic_fetch_add(ngx_connection_counter, 1); | 684 sc->number = ngx_atomic_fetch_add(ngx_connection_counter, 1); |
685 sc->start_time = c->start_time; | |
685 sc->tcp_nodelay = NGX_TCP_NODELAY_DISABLED; | 686 sc->tcp_nodelay = NGX_TCP_NODELAY_DISABLED; |
686 | 687 |
687 sc->recv = ngx_quic_stream_recv; | 688 sc->recv = ngx_quic_stream_recv; |
688 sc->send = ngx_quic_stream_send; | 689 sc->send = ngx_quic_stream_send; |
689 sc->send_chain = ngx_quic_stream_send_chain; | 690 sc->send_chain = ngx_quic_stream_send_chain; |