Skip to content

Commit

Permalink
Fix minimal value for connect timeout (#1869)
Browse files Browse the repository at this point in the history
  • Loading branch information
romainneutron committed Nov 13, 2020
1 parent 9471df3 commit 41ab9bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transport/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 41ab9bf

Please sign in to comment.