Skip to content

Commit

Permalink
Merge pull request #30 from rboyatt/curl-timeout-dev
Browse files Browse the repository at this point in the history
Ensure we timeout on slow connections, not just connecting slowly.
  • Loading branch information
lordtatty authored Jul 11, 2018
2 parents d00f525 + 004ee35 commit 04a827d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 2.4/blocks/aspirelists/block_aspirelists.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function get_content() {
CURLOPT_HEADER => false,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CONNECTTIMEOUT => 20,
CURLOPT_TIMEOUT => 20,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1
);
curl_setopt_array($ch, $options);
Expand Down

0 comments on commit 04a827d

Please sign in to comment.