]> granicus.if.org Git - php/commitdiff
Correcting as per discussion with Iliaa and Edin on efnet://#php.bugs
authorDan Kalowsky <kalowsky@php.net>
Tue, 13 Aug 2002 14:56:50 +0000 (14:56 +0000)
committerDan Kalowsky <kalowsky@php.net>
Tue, 13 Aug 2002 14:56:50 +0000 (14:56 +0000)
main/network.c

index 19bdc1b1ac53225f8905234751d431462afc9d2b..a4bd9b4e4271def597011ce88abfb6ee94512fb8 100644 (file)
@@ -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+");