Closed Rudd-O closed 11 years ago
I would refine the code as per " you should probably not use "noCloseOnExec" and instead use cmd.ExtraFiles it is what it was made for
@Rudd-O I unfortunately can't merge this. I would like to support UNIX domain sockets but can't do so exclusively. And as stated in #6, I'm also not interested in hard-coding the exit strategy to "just give it time."
I will check in your patch to make the system work with all types of sockets.
Give me options for the exit strategy, cos I did not understand that part very well. On Mar 25, 2013 11:11 PM, "Richard Crowley" notifications@github.com wrote:
@Rudd-O https://github.com/Rudd-O I unfortunately can't merge this. I would like to support UNIX domain sockets but can't do so exclusively. And as stated in #6 https://github.com/rcrowley/goagain/issues/6, I'm also not interested in hard-coding the exit strategy to "just give it time."
— Reply to this email directly or view it on GitHubhttps://github.com/rcrowley/goagain/pull/7#issuecomment-15442975 .
@ManuelAmadorAditazz just off the top of my head one might want to delay for some fixed period of time longer than requests are supposed to take, wait until all active connections have closed, or wait until all active connections have finished the current request. The point is only that it isn't up to goagain
how your requirements are enforced.
That's a sensible observation. In any case I will probably keep my code around for a while until such time that I need this flexibility. The differences between our trees are minimal in any case, and I can keep merging.
On Tue, Mar 26, 2013 at 7:08 PM, Richard Crowley notifications@github.comwrote:
@ManuelAmadorAditazz https://github.com/ManuelAmadorAditazz just off the top of my head one might want to delay for some fixed period of time longer than requests are supposed to take, wait until all active connections have closed, or wait until all active connections have finished the current request. The point is only that it isn't up to goagain how your requirements are enforced.
— Reply to this email directly or view it on GitHubhttps://github.com/rcrowley/goagain/pull/7#issuecomment-15500474 .
... parent stops listening and lingers for ten seconds handling slow requests before giving up, while the child picks up the listening socket immediately and continues serving requests.