You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http.Server.RegisterOnShutdown was introduced in 1.9 cycle, but it's not mentioned in the release notes, so it's easy to miss, even if it's useful to you.
Shutdown does not attempt to close nor wait for hijacked connections such as WebSockets. The caller of Shutdown should separately notify such long-lived connections of shutdown and wait for them to close, if desired.
IMO this is a good place to mention the new RegisterOnShutdown method to increase awareness of its existence.
The text was updated successfully, but these errors were encountered:
http.Server.RegisterOnShutdown was introduced in 1.9 cycle, but it's not mentioned in the release notes, so it's easy to miss, even if it's useful to you.
Documentation for http.Server.Shutdown (that was introduced in 1.8) states:
IMO this is a good place to mention the new RegisterOnShutdown method to increase awareness of its existence.
The text was updated successfully, but these errors were encountered: