From: Janusz Dobrowolski Date: Mon, 22 Nov 2010 21:08:07 +0000 (+0000) Subject: Fixed long timeouts on localhost repo. X-Git-Tag: v2.4.2~19^2~468 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=56c36285c4c0d22b978552baa0928b8eb3c64a7b;p=fa-stable.git Fixed long timeouts on localhost repo. --- 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 );