[Catalyst] timeouts
Peter Karman
peter at peknet.com
Thu Apr 13 22:49:41 CEST 2006
greetings cattle-lusters,
I've got a Cat app where I'm running into issues with DBI timeouts. I'm
using raw DBI, but as I know there are lots of ORM developers here as
well as us mere mortal Cat-rustlers, wondering how folks deal with this
situation:
sub foo : Local
{
# create dbi object, prepare, execute
# but at least one of those steps results in a long
# delay due to ... whatever (traffic, load, etc.)
}
The DBI pod refers to Sys::SigAction as a good timeout handler. I'm
headed that way. But wonder how folks deal with timeouts in Cat apps
when a controller sends off for some info and there's a wait coming
back. A quick cpan search for 'catalyst plugin alarm' didn't turn up
anything.
I've got another example doing login auth against a server that may or
may not feel like responding immediately. Since I'm using LWP::UserAgent
in that case I just set the timeout explicitly, but DBI is a little
trickier.
cheers,
pek
--
Peter Karman . http://peknet.com/ . peter at peknet.com
More information about the Catalyst
mailing list