[FASTCGI] Can I do some cleanup work when the request is timeout?

Ray Allen ysj.ray at gmail.com
Thu May 6 22:06:56 EDT 2010


Thanks, Daniel!

You said that I can use a alarm signal to wake up my application when it's
timeout, but it seems that there is no such mechanism in apache mod_fastcgi.
Is there any FastCGI specification about this timeout signal? Or I have to
implement it myself?


On Tue, May 4, 2010 at 10:55 PM, Daniel Lo <wilburlo at gmail.com> wrote:

> Hello Ray,
>
> The first idea that comes to mind is that you can use a alarm signal to
> wake up
> your application and ask it to drop the connection.
>
> However, if you are checking your connection before you use it.  You can
> also
> use the wait timeout from mysql.
>
>
> http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_wait_timeout
>
> -daniel
>
>
> Friday, April 30, 2010, 2:23:50 AM, you wrote:
>
> > Hi, all:
>
> >     When I was using mod_fast cgi, I want to do some cleanup work when
> the
> > current request is timeout(the -idle-timeout configuration). How can I do
> > that in my applications? For example, I want to kill a long running mysql
> > connection just before the timeout.
>
>
> > Thanks!
>
>
>
>
> --
> Best regards,
>  Daniel                            mailto:wilburlo at gmail.com
>
>


-- 
Ray Allen
Best wishes!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.pins.net/mailman/private.cgi/fastcgi-developers/attachments/20100507/f882ac14/attachment.html>


More information about the FastCGI-developers mailing list