Merge pull request #101 from gnieark/dev
CURLOPT_CONNECTTIMEOUT is not same as CURLOPT_TIMEOUT
This commit is contained in:
commit
15c63fc316
|
@ -1 +1 @@
|
||||||
1845
|
1853
|
|
@ -106,7 +106,8 @@ class TronGame
|
||||||
curl_setopt($ch[$i], CURLOPT_SSL_VERIFYPEER, false);
|
curl_setopt($ch[$i], CURLOPT_SSL_VERIFYPEER, false);
|
||||||
curl_setopt($ch[$i], CURLOPT_POSTFIELDS, $data_string);
|
curl_setopt($ch[$i], CURLOPT_POSTFIELDS, $data_string);
|
||||||
curl_setopt($ch[$i], CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch[$i], CURLOPT_RETURNTRANSFER, true);
|
||||||
curl_setopt($ch[$i], CURLOPT_CONNECTTIMEOUT, 10);
|
//curl_setopt($ch[$i], CURLOPT_CONNECTTIMEOUT, 10);
|
||||||
|
curl_setopt($ch[$i], CURLOPT_TIMEOUT, 10);
|
||||||
curl_setopt($ch[$i], CURLOPT_HTTPHEADER, array(
|
curl_setopt($ch[$i], CURLOPT_HTTPHEADER, array(
|
||||||
'Content-Type: application/json',
|
'Content-Type: application/json',
|
||||||
'Content-Length: ' . strlen($data_string))
|
'Content-Length: ' . strlen($data_string))
|
||||||
|
|
|
@ -346,7 +346,7 @@ function get_IA_Response($iaUrl,$postParams){
|
||||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
|
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
|
||||||
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
|
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
|
||||||
'Content-Type: application/json',
|
'Content-Type: application/json',
|
||||||
'Content-Length: ' . strlen($data_string))
|
'Content-Length: ' . strlen($data_string))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user