Update of picoFeed (Added a response timeout to prevent connections from hanging)

This commit is contained in:
Frederic Guillot 2013-07-01 18:35:18 -04:00
parent 14745a3474
commit 089e106a2b
1 changed files with 1 additions and 0 deletions

View File

@ -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);