How to close an oracle db connection from php on an apache server? I mean close instantly.

Posted by Valentin Jacquemin on Stack Overflow See other posts from Stack Overflow or by Valentin Jacquemin
Published on 2010-04-14T12:39:55Z Indexed on 2010/04/14 12:43 UTC
Read the original article Hit count: 283

Filed under:
|
|

Usually closing a connection is simply done by oci_clone($connection); or in a worse case when the php script ends the connection pass away.

In my case however, I face a different behavior.

If I access my application which uses PHP 5.2.8, Apache 2.2.11 and oci8 1.2.5, the connection is kept during several minutes.

Actually it seems to: if I launch netstat -b I see that the process httpd.exe remains with the ESTABLISHED status on the database's URL during a while (a few minutes).

Could someone enlighten me on that behavior?

P.S. I do not use persistent connections.

© Stack Overflow or respective owner

Related posts about apache

Related posts about php