summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/pfsense-utils.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index d7ffe7d..ffc9e3e 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1670,7 +1670,7 @@ function get_freebsd_version() {
return $version[0];
}
-function download_file($url, $destination, $verify_ssl = false, $connect_timeout = 60, $timeout = 0) {
+function download_file($url, $destination, $verify_ssl = false, $connect_timeout = 5, $timeout = 0) {
global $config, $g;
$fp = fopen($destination, "wb");
@@ -1705,7 +1705,7 @@ function download_file($url, $destination, $verify_ssl = false, $connect_timeout
return ($http_code == 200) ? true : $http_code;
}
-function download_file_with_progress_bar($url_file, $destination_file, $readbody = 'read_body', $connect_timeout=60, $timeout=0) {
+function download_file_with_progress_bar($url_file, $destination_file, $readbody = 'read_body', $connect_timeout = 5, $timeout=0) {
global $ch, $fout, $file_size, $downloaded, $config, $first_progress_update, $g;
$file_size = 1;
$downloaded = 1;
OpenPOWER on IntegriCloud