Skip to content
Snippets Groups Projects
Commit 25192ffd authored by Alex Barth's avatar Alex Barth
Browse files

Keep http_request library independent from Feeds.

parent 30fa3f7d
No related branches found
No related tags found
No related merge requests found
......@@ -208,6 +208,10 @@ Default: 50
The number of nodes feed node processor creates or deletes in one
page load.
Name: http_request_timeout
Default: 15
Description: Timeout in seconds to wait for an HTTP get request to finish.
Glossary
========
......
......@@ -145,7 +145,7 @@ function http_request_get($url, $username = NULL, $password = NULL, $accept_inva
curl_setopt($download, CURLOPT_HEADER, TRUE);
curl_setopt($download, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($download, CURLOPT_ENCODING, '');
curl_setopt($download, CURLOPT_TIMEOUT, variable_get('feeds_worker_time', 15));
curl_setopt($download, CURLOPT_TIMEOUT, variable_get('http_request_timeout', 15));
if ($accept_invalid_cert) {
curl_setopt($download, CURLOPT_SSL_VERIFYPEER, 0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment