From 56e27257eef4a54d4fba170088589dccb39f5bb3 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 21 Aug 2011 16:59:48 +0200 Subject: avoid 100% cpu usage when reading HTTP headers FS#2304 --- inc/HTTPClient.php | 1 + 1 file changed, 1 insertion(+) (limited to 'inc/HTTPClient.php') diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php index 372769b71..fdf95d113 100644 --- a/inc/HTTPClient.php +++ b/inc/HTTPClient.php @@ -368,6 +368,7 @@ class HTTPClient { unset($this->connections[$connectionId]); return false; } + usleep(1000); $r_headers .= fgets($socket,1024); }while(!preg_match('/\r?\n\r?\n$/',$r_headers)); -- cgit v1.2.3