Re: Can I do some cleanup work when the request is timeout?
Ray Allen <[email protected]> Fri, 7 May 2010 10:06:56 +0800
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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:[email protected] > > -- Ray Allen Best wishes! _______________________________________________ FastCGI-developers mailing list FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers