From 089e106a2b8470bb709bdb5058f677631e5307fa Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 1 Jul 2013 18:35:18 -0400 Subject: [PATCH] Update of picoFeed (Added a response timeout to prevent connections from hanging) --- vendor/PicoFeed/RemoteResource.php | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/PicoFeed/RemoteResource.php b/vendor/PicoFeed/RemoteResource.php index edc218f..f5d5c57 100644 --- a/vendor/PicoFeed/RemoteResource.php +++ b/vendor/PicoFeed/RemoteResource.php @@ -121,6 +121,7 @@ class RemoteResource curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->timeout); + curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout); curl_setopt($ch, CURLOPT_USERAGENT, $this->user_agent); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);