ID:               49615
 User updated by:  bruno at uniconsult dot com dot br
 Reported By:      bruno at uniconsult dot com dot br
 Status:           Bogus
 Bug Type:         OCI8 related
 Operating System: linux
 PHP Version:      5.2.11
 New Comment:

Thanks for the reply, I will update the versions and make some tests


Previous Comments:
------------------------------------------------------------------------

[2009-09-21 22:23:04] s...@php.net

Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


-----------------------

Please try OCI8 1.3. This is included in PHP 5.3, and is available in
PECL for older versions of PHP: http://pecl.php.net/oci8.  The
connection logic was substantially changed.  It also detects and
recovers from dead connections better.

------------------------------------------------------------------------

[2009-09-21 19:43:53] bruno at uniconsult dot com dot br

Description:
------------
I got some problems with an application using persistent connections.
When calling the oci_pconnect() function, if for any reason i got no
response from the database, the PHP script keeps waiting and there is
not a way to timeout it.

In a unix shell script this can be solved using alarms and signals. Is
there some oci8 approach to handle connections timeouts? Important, my
problem is not in closing the connection in database, is to get some
response when oci_pconnect() get no response and a way to handle it.

I made a shell script to trace the execution stack and I noticed that
the last call 'hangs':

#0 0x000000335370b222 in __read_nocancel () from
/lib64/tls/libpthread.so.0 
#1 0x0000002a97cc283e in snttread () 
#2 0x0000002a97cc25f9 in nttfprd () 
#3 0x0000002a97cba86e in nsbasic_brc () 
#4 0x0000002a97cbd6d1 in nsbrecv () 
#5 0x0000002a97cac4fd in nioqrc () 
#6 0x0000002a97ce7642 in ttcdrv () 
#7 0x0000002a97cb310d in nioqwa () 
#8 0x0000002a97c9976b in upirtrc () 
#9 0x0000002a963d8349 in upirtr () 
#10 0x0000002a9645e369 in upiver () 
#11 0x0000002a96ddaa80 in kpuvers () 
#12 0x0000002a96cce2cb in OCIServerVersion () 
#13 0x0000002a958ff12a in php_oci_do_connect_ex () 
#14 0x0000002a958ff580 in php_oci_do_connect () 
#15 0x0000002a9590a2e6 in zif_oci_pconnect ()
#16 ...



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49615&edit=1

Reply via email to