Skip to content
Snippets Groups Projects
Commit 0fb6a0ab authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

modified curl timeouts

parent 181a16fa
No related branches found
No related tags found
No related merge requests found
......@@ -267,7 +267,9 @@ class ProxyController extends Controller
curl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($this->ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($this->ch, CURLOPT_TIMEOUT, 30);
curl_setopt($this->ch, CURLOPT_TIMEOUT, 6);
curl_setopt($this->ch, CURLOPT_LOW_SPEED_LIMIT, 50000);
curl_setopt($this->ch, CURLOPT_LOW_SPEED_TIME, 5);
curl_setopt($this->ch, CURLOPT_HEADER, 1);
}
......@@ -296,6 +298,8 @@ class ProxyController extends Controller
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_BUFFERSIZE, 256);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_LOW_SPEED_LIMIT, 50000);
curl_setopt($ch, CURLOPT_LOW_SPEED_TIME, 5);
curl_setopt($ch, CURLOPT_FILE, $wh); // Data will be sent to our stream ;-)
curl_exec($ch);
......
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