- WIP on tasks
This commit is contained in:
1 parent
7b5a1bcf97
commit
8de8aafa84
2 files changed
+17
-5
No files matched your search
@@ -4,7 +4,7 @@ namespace Negundo\Client\Transport;
|
||||
|
||||
class Curl implements TransportInterface {
|
||||
|
||||
public $timeout = 100;
|
||||
public $timeout = 4;
|
||||
|
||||
public $throwErrors = true;
|
||||
|
||||
@@ -21,7 +21,7 @@ class Curl implements TransportInterface {
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers );
|
||||
curl_setopt($ch, CURLOPT_POST, 1);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data, '', '&'));
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT_MS, $this->timeout * 200);
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->verifySsl);
|
||||
|
||||
$exec = curl_exec($ch);
|
||||
|
||||
Reference in new issue
Block a user