Skip to content

Commit

Permalink
Ensure we timeout on slow connections, not just connecting slowly.
Browse files Browse the repository at this point in the history
  • Loading branch information
rboyatt committed Apr 16, 2018
1 parent 41189e0 commit 004ee35
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 004ee35

Please sign in to comment.