1
0
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:
Antony Dovgal
2006-07-26 07:00:42 +00:00
parent e18934cdd4
commit b14af30ed0
+1 -1
View File
@@ -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 {