Date: 06/30/98
- Next message: Zeev Suraski: "Re: [PHP-DEV] Bug #494: Interaction between persistent connections and timeouts"
- Previous message: cclarke <email protected>: "[PHP-DEV] Bug #493: fpassthru() documentation incomplete"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] Bug #494: Interaction between persistent connections and timeouts"
- Reply: Zeev Suraski: "Re: [PHP-DEV] Bug #494: Interaction between persistent connections and timeouts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: cclarke <email protected>
Operating system: Solaris
PHP version: 3.0 Final Release
PHP Bug Type: ODBC related
Bug description:
(This is really generic to any database interface that supports
persistent connections)
I have some development scripts that I use to initialize a reasonably
large database. Depending on the runtime platform and load, some of these
scripts may or may not complete in the 30 second (default) timeout.
The scripts are built for that, so I generally just hit Reload.
When I moved to Persistent Connections, and ran one of these scripts on
a slow machine, I found that the Reload generates database
errors.
Thinking about this a minute I realized that because the connection
is persistent, the transaction from the timed-out execution is still
open in the database and is holding database locks.
One could easily argue that the bug is writing a script that cannot
live within the tunable timeout, but I thought I'd report it since the result
is a state that can only really be resolved by stopping the web server.
Would it be an appropriate mod to close any/all persistent connections
in the event of an execution timeout?
- Next message: Zeev Suraski: "Re: [PHP-DEV] Bug #494: Interaction between persistent connections and timeouts"
- Previous message: cclarke <email protected>: "[PHP-DEV] Bug #493: fpassthru() documentation incomplete"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] Bug #494: Interaction between persistent connections and timeouts"
- Reply: Zeev Suraski: "Re: [PHP-DEV] Bug #494: Interaction between persistent connections and timeouts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

