3 ms·
Here's the library that implements this pattern: https://github.com/gwatts/manners https://github.com/gwatts/manners And Mailgun's fork that supports passing
by alexk 12y ago
Here's the library that implements this pattern:
https://github.com/gwatts/manners https://github.com/gwatts/manners
And Mailgun's fork that supports passing file descriptors between processes:
https://github.com/mailgun/manners https://github.com/mailgun/manners
- _Soulou 12y agoHi alexk, post author here, The 'manners' package only enables graceful shutdown in a HTTP server, there is still work to be done to restart it gracefully, that's what I'm trying to show in the article.
- alexk 12y agoGreat article btw! That's why I've added missing methods here: https://github.com/mailgun/manners https://github.com/mailgun/manners Getting files from listener: https://github.com/mailgun/manners/blob/master/listener.go#L77 https://github.com/mailgun/manners/blob/master/listener.go#L... Starting server with external listener: https://github.com/mailgun/manners/blob/master/server.go#L87 https://github.com/mailgun/manners/blob/master/server.go#L87 It's used to restart Vulcand without downtime: https://github.com/mailgun/vulcand/blob/master/service/service.go#L207 https://github.com/mailgun/vulcand/blob/master/service/servi... Let's collaborate on this as a library if you are interested