Is there a way to set the CURLOPT_CONNECTTIMEOUT
somehow globally for all cURL requests?
I have an issue where after an upgrade to PHP 7.2 some software’s cURLs now fail at a 10s connect timeout when before they did not. I can't exactly say what changed this behavior, but I need to somehow globally set either a) what causes this to now time out, or b) increase the timeout limit.
Any php.ini
settings that can affect this?
Edit:
Setting default_socket_timeout
does not seem to affect this.
Edit: FYI same issue with more Wordpress specifics: https://wordpress.stackexchange.com/questions/330013/curl-28-error-after-switch-from-to-brew-php-7-2-on-localhost