
01-24-2015, 06:03 AM
|
|
|
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by tdev1
Works fine here, except when steam web API goes down, then even 1 second timeout is too much.
The following change allows timeouts below 1 second:
PHP Code:
$timeout = 0.3;
// ...
curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT_MS, $timeout * 1000 );
curl_setopt( $ch, CURLOPT_TIMEOUT_MS, $timeout * 1000 );
|
You never 'mentioned' where you changed this though. Showing the code is awesome, but the location of where to find it is another question.
|