Commit 21325959 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Import : prise en compte du paramètre 'connect_timeout' dans les appels au WS.

parent 1b1bf490
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -10,8 +10,8 @@ use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Exception\ServerException;
use UnicaenApp\Exception\RuntimeException;
use Import\Exception\CallException;
use UnicaenApp\Exception\RuntimeException;
use Zend\Http\Response;
use Zend\Log\LoggerAwareTrait;

@@ -97,6 +97,9 @@ class CallService
        if (array_key_exists('timeout', $config)) {
            $this->config['timeout'] = $config['timeout'];
        }
        if (array_key_exists('connect_timeout', $config)) {
            $this->config['connect_timeout'] = $config['connect_timeout'];
        }
        if (array_key_exists('proxy', $config)) {
            $this->config['proxy'] = $config['proxy'];
        } else {