Update of picoFeed (Added a response timeout to prevent connections from hanging)
This commit is contained in:
parent
14745a3474
commit
089e106a2b
1
vendor/PicoFeed/RemoteResource.php
vendored
1
vendor/PicoFeed/RemoteResource.php
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user