mirror of
https://github.com/php/php-src.git
synced 2026-04-28 18:53:33 +02:00
improve connection timeout check (implements FR #38210)
This commit is contained in:
+1
-1
@@ -1071,7 +1071,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