Skip to content

Commit

Permalink
Увеличил таймаут для curl запроса, в запросе на получение деталей (ar…
Browse files Browse the repository at this point in the history
…ticles) при количестве деталей более 100 не успевал скачиваться ответ сервиса на медленном соединении.
  • Loading branch information
antflk committed Jul 19, 2016
1 parent 736dd28 commit 42f41bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RestClient/RestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private function buildGetUrl($url, $parameters = null)
*/
private function doExecute($curlHandle, Request $request)
{
curl_setopt($curlHandle, CURLOPT_TIMEOUT, 10);
curl_setopt($curlHandle, CURLOPT_TIMEOUT, 30);
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curlHandle, CURLOPT_HEADER, true);
curl_setopt($curlHandle, CURLOPT_HTTPHEADER, array('Accept: ' . $request->getHttpAccept()));
Expand Down

0 comments on commit 42f41bf

Please sign in to comment.