Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: add examples/comments for Server.Shutdown #19579
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
I looked a bit into this one and made a small change to embed the synchronisation of Shutdown() and Serve() in the net/http itself instead of expecting to synchronise them through main.
Proposal for the change.
I am looking as well into testing it properly, but wanted to check if this approach is reasonable to move forward with.