]> granicus.if.org Git - php/commitdiff
improve connection timeout check (implements FR #38210)
authorAntony Dovgal <tony2001@php.net>
Wed, 26 Jul 2006 06:59:40 +0000 (06:59 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 26 Jul 2006 06:59:40 +0000 (06:59 +0000)
ext/oci8/oci8.c

index 704463a6e1755e74544dcf75738ecb18b152e54c..b34316da0e2dc95df2d3d0ea1c9c2fb32889aa32 100644 (file)
@@ -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 {