From 56c36285c4c0d22b978552baa0928b8eb3c64a7b Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 22 Nov 2010 21:08:07 +0000 Subject: [PATCH] Fixed long timeouts on localhost repo. --- includes/remote_url.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/remote_url.inc b/includes/remote_url.inc index 8b033806..fb0c1348 100644 --- a/includes/remote_url.inc +++ b/includes/remote_url.inc @@ -63,8 +63,8 @@ function url_get_contents($url, $timeout=10) $len =0; while ($line = fread($fp, 4096)) { $response .= $line; -// if ($host=='localhost') -// stream_set_blocking($fp, 0); // just after connection switch to nonblocking mode + if ($host=='localhost') + stream_set_blocking($fp, 0); // just after connection switch to nonblocking mode } fclose( $fp ); -- 2.30.2