mirror of
https://github.com/golang/net.git
synced 2026-03-31 18:37:08 +09:00
If the server holds the lock while sleeping when shutting down, connections will not be able to unregister themselves from s.activeConns after receiving the GOAWAY frame from the server. This will then cause the server to abort connections unnecessarily after it is done sleeping. Change-Id: I2bce91785db2d138f7bea3a26311139c6a6a6964 Reviewed-on: https://go-review.googlesource.com/c/net/+/760560 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Nicholas Husin <husin@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>