Skip to content

Commit 2d28523

Browse files
author
Kyra Farrow
committed
[HttpClient] Remove CURLOPT_CONNECTTIMEOUT_MS curl opt
1 parent b5f7b9f commit 2d28523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CurlHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function request(string $method, string $url, array $options = []): Respo
140140
CURLOPT_FOLLOWLOCATION => true,
141141
CURLOPT_MAXREDIRS => 0 < $options['max_redirects'] ? $options['max_redirects'] : 0,
142142
CURLOPT_COOKIEFILE => '', // Keep track of cookies during redirects
143-
CURLOPT_CONNECTTIMEOUT_MS => 1000 * $options['timeout'],
143+
CURLOPT_TIMEOUT => 0,
144144
CURLOPT_PROXY => $options['proxy'],
145145
CURLOPT_NOPROXY => $options['no_proxy'] ?? $_SERVER['no_proxy'] ?? $_SERVER['NO_PROXY'] ?? '',
146146
CURLOPT_SSL_VERIFYPEER => $options['verify_peer'],

0 commit comments

Comments
 (0)