in reply to Re^4: how to timeout an operation under mod_perl (looking)
in thread how to timeout an operation under mod_perl

Sorry tye, didn't notice that the name had changed before I replied. Having safe signals that could interrupt DBI would be ideal. This is common enough that maybe DBI actually needs special handling for timeouts built in.
  • Comment on Re^5: how to timeout an operation under mod_perl (looking)

Replies are listed 'Best First'.
Re^6: how to timeout an operation under mod_perl (looking)
by ysth (Canon) on Sep 08, 2008 at 04:57 UTC

      Retrying on EINTR? How annoying! What is the motivation for that? A DBI call seems like the perfect place one would want to interrupt something with a signal (queries can take surprisingly long to run and long-running queries can cause problems for other users of the database so wanting to time-out queries seems an obvious desire). I'd expect such retrying to at least be optional (or to at least not retry on SIGALRM).

      - tye