Re: [go-nuts] graceful restart of app with more than one tcp Listener
On 2017-11-07 15:28, Vasiliy Tolstov wrote: > I know about it, but > https://github.com/rcrowley/goagain/issues/12 cant handle multiple listeners > https://godoc.org/github.com/facebookgo/grace/gracenet does not > support close the listener > https://github.com/fvbock/endless works with http , but i don't need > http server. https://github.com/One-com/gone More specifically: https://github.com/One-com/gone/daemon https://github.com/One-com/gone/sd Docs for some of this could use an overhaul. /Peter -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [go-nuts] graceful restart of app with more than one tcp Listener
2017-11-07 17:20 GMT+03:00 Steven Hartland : > There are a number of libraries which attempt to address this, ones I've > seen: > > https://github.com/fvbock/endless > https://github.com/rcrowley/goagain > https://github.com/facebookgo/grace > > I know about it, but https://github.com/rcrowley/goagain/issues/12 cant handle multiple listeners https://godoc.org/github.com/facebookgo/grace/gracenet does not support close the listener https://github.com/fvbock/endless works with http , but i don't need http server. -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [go-nuts] graceful restart of app with more than one tcp Listener
There are a number of libraries which attempt to address this, ones I've seen: * https://github.com/fvbock/endless * https://github.com/rcrowley/goagain * https://github.com/facebookgo/grace On 07/11/2017 13:33, Vasiliy Tolstov wrote: Hi! I have application that listens 2-4 tcp ports and i need to upgrade it while running. How can upgrade server and not dropping exiting connected apps (tcp nbd-client like apps)? I don't want to use haproxy or nginx before my app. As i understand i need master process that only listens sockets and fork child app and pass to it accepted connections. So i can upgrade by passing listening fd to new master process and forward new tcp connections to new child? But what can i do with already connected clients to previous child process? Does it possible to do what i need and not dropping exiting tcp connections? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[go-nuts] graceful restart of app with more than one tcp Listener
Hi! I have application that listens 2-4 tcp ports and i need to upgrade it while running. How can upgrade server and not dropping exiting connected apps (tcp nbd-client like apps)? I don't want to use haproxy or nginx before my app. As i understand i need master process that only listens sockets and fork child app and pass to it accepted connections. So i can upgrade by passing listening fd to new master process and forward new tcp connections to new child? But what can i do with already connected clients to previous child process? Does it possible to do what i need and not dropping exiting tcp connections? -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.