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

index 4097037579ef5d216a97420999069cf872400e0a..1015d5072352ec6978bc0c3cde69c3100e1dada5 100644 (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 {