aboutsummaryrefslogtreecommitdiffstats
path: root/config/autoconfigbackup/autoconfigbackup.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-11-30 21:14:05 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-11-30 21:14:05 -0500
commit9d44f1ac5a751522434757b9c824c31994bdff6e (patch)
tree6e3000a8997b4d943d8b47e4147ae01e3fa70178 /config/autoconfigbackup/autoconfigbackup.inc
parent4dbac440d738b5e013a9dc278ec4efbc3dd012da (diff)
downloadpfsense-packages-9d44f1ac5a751522434757b9c824c31994bdff6e.tar.gz
pfsense-packages-9d44f1ac5a751522434757b9c824c31994bdff6e.tar.bz2
pfsense-packages-9d44f1ac5a751522434757b9c824c31994bdff6e.zip
Set CURLOPT_CONNECTTIMEOUT to 35 seconds
Diffstat (limited to 'config/autoconfigbackup/autoconfigbackup.inc')
-rw-r--r--config/autoconfigbackup/autoconfigbackup.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/autoconfigbackup/autoconfigbackup.inc b/config/autoconfigbackup/autoconfigbackup.inc
index 61b2b387..06aed8e7 100644
--- a/config/autoconfigbackup/autoconfigbackup.inc
+++ b/config/autoconfigbackup/autoconfigbackup.inc
@@ -194,6 +194,8 @@ function upload_config($reasonm = "") {
curl_setopt($curl_session, CURLOPT_POSTFIELDS, $fields_string);
curl_setopt($curl_session, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_session, CURLOPT_SSL_VERIFYPEER, 0);
+ curl_setopt($curl_session, CURLOPT_CONNECTTIMEOUT, 35);
+
$data = curl_exec($curl_session);
if (curl_errno($curl_session)) {
$fd = fopen("/tmp/backupdebug.txt", "w");