News for hackers. Stuff that matters.
Re:Go 1.3 is released by frakturfreund on Wednesday June 18, 2014 @11:39PM (#7914330)
The release notes mention the graceful shutdown of a http.Server:

"The net/http package now provides an optional Server.ConnState callback to hook various phases of a server connection's lifecycle (see ConnState). This can be used to implement rate limiting or graceful shutdown."

Knows anyone here a code example for this?

Re:Go 1.3 is released by dchest on Thursday June 19, 2014 @03:35AM (#7914860)
Re:Go 1.3 is released by lbarrow on Thursday June 19, 2014 @12:11AM (#7914452)
I'm super pumped about this -- I plan to spend the weekend upgrading a graceful shutdown server I maintain to use it.

https://github.com/braintree/manners

Re:Go 1.3 is released by AYBABTME on Thursday June 19, 2014 @12:12AM (#7914453)
Re:Go 1.3 is released by mathrawka on Thursday June 19, 2014 @12:43AM (#7914514)
Please note that net/http does not implement graceful shutdown, 1.3 has made it easy to implement in your application code.