Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 679ea90

Browse filesBrowse files
committed
[HttpClient] Remove CURLOPT_CONNECTTIMEOUT_MS curl opt
1 parent f3f6b58 commit 679ea90
Copy full SHA for 679ea90

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/HttpClient/CurlHttpClient.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/CurlHttpClient.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.