Hello Jean-Francois! On Mon, 18 Jul 2005 10:08:10 +0200 "BUSTARRET, Jean-Francois" <[EMAIL PROTECTED]> wrote:
> > I created a patch for http://bugs.php.net/bug.php?id=29779 (which can be > considered as a feature request more than a bug). > > Rather than pinging existing connection each time, which would slow down > things too much for high traffic sites, the patch pings connections only > every x seconds. Considering this problem occurs when a firewall drops idle > connections after let's say one hour of inactivity, I think this is a fine > solution. > > I added a php.ini variable : oci8.ping_freq (if not set, oci8 works like > before). The code adds a last_ping timestamp to the server struct, and pings > when ping_freq > 0 && (time(NULL) - last_ping) > ping_freq. It otherwise uses > the commented oci_ping call. > > The patch (against CVS/5.0 branch) can be found at : > http://www.jeuxdecartes.net/static/oci8.ping_freq.patch > > Hope you'll find this patch ok, and will include it in future releases of 5.0. Thanks for the patch. I'm currently working on OCI8 and this issue will be closed along with the others. -- Wbr, Antony Dovgal -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
