/ go Public
net/http: HTTP/2 server sometimes accepts a new request after OnShutdown hook is called #59038
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
When I modified
net/http.TestServerShutdownto make a call to
Getin the handler after the hook passed to
RegisterOnShutdownwas called, it passed reliably on my workstation but failed on the
That suggests that an HTTP/2 server (at least on Windows) may accept a completely new request after it has already called the
OnShutdownhook. Even given HTTP/2's stream multiplexing, that behavior is surprising.
See previously #39776,
The text was updated successfully, but these errors were encountered: