Skip to content

Commit

Permalink
Default to a 5 second cURL time-out
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Sep 27, 2019
1 parent 2e90af0 commit 9b0bbc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Certainty.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public static function getGuzzleClient(Fetch $fetch = null)
// https://github.com/curl/curl/blob/6aa86c493bd77b70d1f5018e102bc3094290d588/include/curl/curl.h#L1927
$options['curl.options'][CURLOPT_SSLVERSION] = CURL_SSLVERSION_TLSv1_2 | (CURL_SSLVERSION_TLSv1 << 16);
}
$options['connect_timeout'] = 5;

return new Client($options);
}
Expand Down

0 comments on commit 9b0bbc5

Please sign in to comment.