Fixed long timeouts on localhost repo.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 22 Nov 2010 21:08:07 +0000 (21:08 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 22 Nov 2010 21:08:07 +0000 (21:08 +0000)
includes/remote_url.inc

index 8b033806bffd92de9bf13d65000885d99c12934e..fb0c1348fa48c8dbad4bbd38b26729b22615a39c 100644 (file)
@@ -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 );