From 41ab9bf1ebca493832021e3eb8d199b50f6c0e79 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Fri, 13 Nov 2020 15:56:51 +0100 Subject: [PATCH] Fix minimal value for connect timeout (#1869) --- src/Transport/Http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Transport/Http.php b/src/Transport/Http.php index af6c105a10..c6d1dfbac3 100644 --- a/src/Transport/Http.php +++ b/src/Transport/Http.php @@ -89,7 +89,7 @@ public function exec(Request $request, array $params): Response // Let's only apply this value if the number of ms is greater than or equal to "1". // In case "0" is passed as an argument, the value is reset to its default (300 s) - if ($connectTimeoutMs > 1) { + if ($connectTimeoutMs >= 1) { \curl_setopt($conn, \CURLOPT_CONNECTTIMEOUT_MS, $connectTimeoutMs); }