Re: Detecting graceful restart/stop in child processes

2009-12-10 Thread Bill Moseley
On Mon, Dec 7, 2009 at 7:01 AM, Bill Moseley \ > > > So, it would be more convenient if a graceful restart could be done on just > Apache and that would trigger closing the connections on the next response > freeing up the process to exit. That's the part I'm trying to get working. > This was pre

Re: Detecting graceful restart/stop in child processes

2009-12-07 Thread Bill Moseley
On Mon, Dec 7, 2009 at 1:18 AM, André Warnier wrote: > Bill Moseley wrote: > >> >> Again, I've got keep alives set for a long time. >> > > Well, isn't that your problem then ? > KeepAlive connections were introduced at a time when establishing and > tearing down TCP connections were relatively ex

Re: Detecting graceful restart/stop in child processes

2009-12-07 Thread André Warnier
Bill Moseley wrote: Again, I've got keep alives set for a long time. Well, isn't that your problem then ? KeepAlive connections were introduced at a time when establishing and tearing down TCP connections were relatively expensive things to do. With modern servers however, this is less impor

Re: Detecting graceful restart/stop in child processes

2009-12-06 Thread Bill Moseley
On Sun, Dec 6, 2009 at 9:51 AM, André Warnier wrote: > > I am not the ultimate authority here, but I think you are going to have > several problems with this idea. > - the first one is that under Windows (where Apache also runs) there are no > such signals. > - the second one is that the signal,

Re: Detecting graceful restart/stop in child processes

2009-12-06 Thread André Warnier
Bill Moseley wrote: I'm running mod_perl/2.0.4 with a very large keep-alive set in my httpd.conf. Is there a way to detect when a graceful stop or restart has been requested in the child apache processes? I tried $SIG{USR1} and $SIG{WINCH} but I'm not seeing them catch the signal. I'd like to b