increase timeouts
This commit is contained in:
parent
2c7b3ddcbe
commit
a0acfb866a
@ -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_SSL_VERIFYPEER, true );
|
||||||
curl_setopt( $curl, CURLOPT_TCP_NODELAY, true );
|
curl_setopt( $curl, CURLOPT_TCP_NODELAY, true );
|
||||||
try {
|
try {
|
||||||
curl_setopt( $curl, CURLOPT_CONNECTTIMEOUT, 2 );
|
curl_setopt( $curl, CURLOPT_CONNECTTIMEOUT, 5 );
|
||||||
curl_setopt( $curl, CURLOPT_TIMEOUT, 10 );
|
curl_setopt( $curl, CURLOPT_TIMEOUT, 30 );
|
||||||
} catch ( Exception $e ) {
|
} catch ( Exception $e ) {
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user