mirror of
https://github.com/php/php-src.git
synced 2026-03-26 01:02:25 +01:00
improve connection timeout check (implements FR #38210)
This commit is contained in:
@@ -1056,7 +1056,7 @@ php_oci_connection *php_oci_do_connect_ex(char *username, int username_len, char
|
||||
* 1) next_ping > 0, which means that ping_interval is not -1 (aka "Off")
|
||||
* 2) current_timestamp > next_ping, which means "it's time to check if it's still alive"
|
||||
* */
|
||||
if ( (connection->next_ping > 0) && (timestamp > connection->next_ping) && !php_oci_connection_ping(connection TSRMLS_CC)) {
|
||||
if ( (connection->next_ping > 0) && (timestamp >= connection->next_ping) && !php_oci_connection_ping(connection TSRMLS_CC)) {
|
||||
/* server died */
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user