You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Ed L." <ht...@bluepolka.net> on 2003/01/28 19:55:06 UTC

[users@httpd] graceful stop?

Hi All.

I have need of a 'graceful stop' whereby existing requests are allowed 
to complete fully before each child httpd process exits.  I am aware 
of the graceful restart capability, but this is different because I 
don't want a restart.

Does such a thing exist?  If not, is there a known workaround?

Thanks in advance.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] graceful stop?

Posted by "Ed L." <ht...@bluepolka.net>.
On Tuesday January 28 2003 2:49, Jacob Coby wrote:
> >>Bummer, hoped for something a little simpler.  We have apps that
> involve significant uploads over geographically widely distributed
> lans, and we need this sort of functionality often.<<
>
> Can't rewrite rules be put in .htaccess files?  You could stick a
> htaccess with a rewrite * to->"we're busy doing something.html"
> until the upload is finished at which point you can remove the
> htaccess and the sites start working again.  Current responses
> would finish while new access would show the "we're busy, come back
> later" html.  Plus you get no "site not found" errors to boot :)

I'm talking about uploads as in POSTs and GETs.  For example, a user 
may be POSTing gobs of data in one request.  We need to allow him to 
finish, then shut the whole thing down.  These are huge requests.

Thanks.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] graceful stop?

Posted by Jacob Coby <jc...@listingbook.com>.
>>Bummer, hoped for something a little simpler.  We have apps that
involve significant uploads over geographically widely distributed
lans, and we need this sort of functionality often.<<

Can't rewrite rules be put in .htaccess files?  You could stick a htaccess
with a rewrite * to->"we're busy doing something.html" until the upload is
finished at which point you can remove the htaccess and the sites start
working again.  Current responses would finish while new access would show
the "we're busy, come back later" html.  Plus you get no "site not found"
errors to boot :)

-Jacob


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] graceful stop?

Posted by "Ed L." <ht...@bluepolka.net>.
On Tuesday January 28 2003 1:41, Joshua Slive wrote:
> > I have need of a 'graceful stop' whereby existing requests are
> > allowed to complete fully before each child httpd process exits. 
> >
> > Does such a thing exist?  If not, is there a known workaround?
>
> No graceful stop, but you can swap the config file for one that
> provides no access and do a graceful restart, followed by a regular
> stop when all the connections are finished.

Bummer, hoped for something a little simpler.  We have apps that 
involve significant uploads over geographically widely distributed 
lans, and we need this sort of functionality often.

Thanks.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] graceful stop?

Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 28 Jan 2003, Ed L. wrote:
> I have need of a 'graceful stop' whereby existing requests are allowed
> to complete fully before each child httpd process exits.  I am aware
> of the graceful restart capability, but this is different because I
> don't want a restart.
>
> Does such a thing exist?  If not, is there a known workaround?

No graceful stop, but you can swap the config file for one that provides
no access and do a graceful restart, followed by a regular stop when all
the connections are finished.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org