]> git.feebdaed.xyz Git - 0xmirror/quic-go.git/commit
use default RTT (100ms) for 0-RTT if no prior estimate (#5388)
authorMarten Seemann <martenseemann@gmail.com>
Thu, 16 Oct 2025 07:32:46 +0000 (15:32 +0800)
committerGitHub <noreply@github.com>
Thu, 16 Oct 2025 07:32:46 +0000 (09:32 +0200)
commit42b198b8d12418bd2af2f90522828d0e7334c867
tree9bf14b2adf6eec7b1cd14ba27c0efd71970efb09
parent5e5100b40c28ab09bf05ae565fdf8053ddbe005b
use default RTT (100ms) for 0-RTT if no prior estimate (#5388)

* utils: initialize the {Smoothed, Latest, Min}RTT to 100ms

* utils: use time.Duration.Nanoseconds instead of uint64

No functional change expected.

* congestion: better check to avoid division by zero
14 files changed:
connection.go
connection_test.go
internal/ackhandler/sent_packet_handler_test.go
internal/congestion/cubic_sender.go
internal/congestion/cubic_sender_test.go
internal/flowcontrol/connection_flow_controller_test.go
internal/flowcontrol/stream_flow_controller_test.go
internal/handshake/crypto_setup_test.go
internal/handshake/updatable_aead_test.go
internal/utils/rtt_stats.go
internal/utils/rtt_stats_test.go
mtu_discoverer_test.go
qlog/benchmark_test.go
qlog/event_test.go