From a0acfb866afe0e0752880e48252ec72cb0a946e0 Mon Sep 17 00:00:00 2001 From: Marek Isalski Date: Wed, 23 May 2018 14:10:44 +0100 Subject: [PATCH] increase timeouts --- fulcrm_apiv2.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fulcrm_apiv2.module b/fulcrm_apiv2.module index 6f3ad2e..9781908 100644 --- a/fulcrm_apiv2.module +++ b/fulcrm_apiv2.module @@ -134,8 +134,8 @@ function fulcrm_apiv2_http( $method, $object = null, $data = null, $query = null curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, true ); curl_setopt( $curl, CURLOPT_TCP_NODELAY, true ); try { - curl_setopt( $curl, CURLOPT_CONNECTTIMEOUT, 2 ); - curl_setopt( $curl, CURLOPT_TIMEOUT, 10 ); + curl_setopt( $curl, CURLOPT_CONNECTTIMEOUT, 5 ); + curl_setopt( $curl, CURLOPT_TIMEOUT, 30 ); } catch ( Exception $e ) { // do nothing }