Browse Source

set connect timeout

pull/39/head
Aaron Parecki 8 years ago
parent
commit
a7780fb671
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lib/HTTPCurl.php

+ 1
- 0
lib/HTTPCurl.php View File

@ -73,6 +73,7 @@ class HTTPCurl {
} }
curl_setopt($ch, CURLOPT_TIMEOUT_MS, round($this->timeout * 1000)); curl_setopt($ch, CURLOPT_TIMEOUT_MS, round($this->timeout * 1000));
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
} }
public static function error_string_from_code($code) { public static function error_string_from_code($code) {

Loading…
Cancel
Save