[Catalyst] timeouts

Peter Karman peter at peknet.com
Fri Apr 14 17:03:44 CEST 2006



Yuval Kogman scribbled on 4/14/06 4:09 AM:

> Either way, Catalyst does not (currently) make use of 'alarm'
> anywhere. The problem with alarms is that they're process global. I
> don't knoww how this behaves in mod_perl, but you should find out on
> e.g. the mod_perl mailinglist/channel/manual.

http://modperlbook.org/html/ch06_10.html

uses the same example of alarm(timeout)/code/alarm(0) that you 
mentioned. That same example is also shown in the DBI pod, where it is 
recommended not to use it. :) Instead it points at Sys::SigAction, which 
is also (I see from cpan) used by DBIx::HA.

So it seems like that alarm() use is not so much an issue for mod_perl, 
but moreso for DBI.

I've started on an Alarm plugin. Will post code when I've tested thoroughly.

thanks.

pek

-- 
Peter Karman  .  http://peknet.com/  .  peter at peknet.com



More information about the Catalyst mailing list