From: Dan Kalowsky Date: Tue, 13 Aug 2002 14:56:50 +0000 (+0000) Subject: Correcting as per discussion with Iliaa and Edin on efnet://#php.bugs X-Git-Tag: php-4.3.0dev_zend2_alpha3~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4feff54879ae8aac2dcd9b73c8b48d6a2a878ea9;p=php Correcting as per discussion with Iliaa and Edin on efnet://#php.bugs --- diff --git a/main/network.c b/main/network.c index 19bdc1b1ac..a4bd9b4e42 100644 --- a/main/network.c +++ b/main/network.c @@ -19,6 +19,7 @@ /*#define DEBUG_MAIN_NETWORK 1*/ #define MAX_CHUNKS_PER_READ 10 +#define SOCKET_DEFAULT_TIMEOUT 60 #include "php.h" @@ -515,7 +516,7 @@ PHPAPI php_stream *_php_stream_sock_open_from_socket(int socket, int persistent sock->is_blocked = 1; sock->chunk_size = FG(def_chunk_size); - sock->timeout.tv_sec = 60; + sock->timeout.tv_sec = SOCKET_DEFAULT_TIMEOUT; sock->socket = socket; stream = php_stream_alloc_rel(&php_stream_socket_ops, sock, persistent, "r+");