We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66a7097 commit aba6250Copy full SHA for aba6250
src/net/http/server.go
@@ -2016,6 +2016,11 @@ const (
2016
// and doesn't fire again until the request has been
2017
// handled. After the request is handled, the state
2018
// transitions to StateClosed, StateHijacked, or StateIdle.
2019
+ // For HTTP/2, StateActive fires on the transition from zero
2020
+ // to one active request, and only transitions away once all
2021
+ // active requests are complete. That means that ConnState
2022
+ // can not be used to do per-request work; ConnState only notes
2023
+ // the overall state of the connection.
2024
StateActive
2025
2026
// StateIdle represents a connection that has finished
0 commit comments