in reply to Re^5: Preventing database handles from going stale
in thread Preventing database handles from going stale
The race condition I'm talking about (assuming a 5 minute timeout) is that the ping could run 4 minutes 59.999 seconds after the last query (while everything is still fine), the connection times out at 5 minutes, and then the next query (tries to) run at 5 minutes and 0.001 seconds after the previous one. eval is indeed the only way to catch that scenario and recover from it, but an ounce of prevention and all that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Preventing database handles from going stale
by kyle (Abbot) on Feb 05, 2007 at 18:28 UTC | |
by EvanK (Chaplain) on Feb 05, 2007 at 18:46 UTC |