]> git.feebdaed.xyz Git - 0xmirror/quic-go.git/commit
improve connection timer logic (#5339)
authorMarten Seemann <martenseemann@gmail.com>
Wed, 24 Sep 2025 08:43:01 +0000 (16:43 +0800)
committerGitHub <noreply@github.com>
Wed, 24 Sep 2025 08:43:01 +0000 (10:43 +0200)
commit2ac3b16df460ee3506aa1a2692317317d166697c
tree7204a32310b731051c690153f303607271f8a027
parent44869e68237b5a128e1b39de58c287f21def5e29
improve connection timer logic (#5339)

* simplify timer resets

As of Go 1.23, timer resets work as expected, and there’s no need to
read a (potentially) stale value from the timer channel.

* don't save the last time

* track if blocked

* remove unblock after sendingScheduled

* fix unblock logic when sending

* don't use fallthrough

* track the blocking mode

* remove stale comment
connection.go
connection_timer.go [deleted file]
connection_timer_test.go [deleted file]
integrationtests/tools/proxy/proxy.go
internal/utils/timer.go [deleted file]
internal/utils/timer_test.go [deleted file]
receive_stream.go
send_stream.go