1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00

Correcting as per discussion with Iliaa and Edin on efnet://#php.bugs

This commit is contained in:
Dan Kalowsky
2002-08-13 14:56:50 +00:00
parent 1027dfcdd1
commit 4feff54879

View 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+");