aboutsummaryrefslogtreecommitdiffstats
path: root/config/autoconfigbackup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-12-06 18:04:32 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-12-06 18:05:45 -0500
commit4dcab16cd72878b4dc63478c9f180da7eb1f8eef (patch)
treedf7d787a1391558c736f696db292f63f3ad9a17d /config/autoconfigbackup
parent4666d909362f46087d386d18458c5eeccf97f2b2 (diff)
downloadpfsense-packages-4dcab16cd72878b4dc63478c9f180da7eb1f8eef.tar.gz
pfsense-packages-4dcab16cd72878b4dc63478c9f180da7eb1f8eef.tar.bz2
pfsense-packages-4dcab16cd72878b4dc63478c9f180da7eb1f8eef.zip
Increase timeouts by 20 seconds
Diffstat (limited to 'config/autoconfigbackup')
-rw-r--r--config/autoconfigbackup/autoconfigbackup.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/autoconfigbackup/autoconfigbackup.inc b/config/autoconfigbackup/autoconfigbackup.inc
index b11f862e..1e31e3c8 100644
--- a/config/autoconfigbackup/autoconfigbackup.inc
+++ b/config/autoconfigbackup/autoconfigbackup.inc
@@ -89,6 +89,9 @@ function test_connection($post) {
curl_setopt($curl_session, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl_session, CURLOPT_POST, 1);
curl_setopt($curl_session, CURLOPT_RETURNTRANSFER, 1);
+ curl_setopt($curl_session, CURLOPT_CONNECTTIMEOUT, 55);
+ curl_setopt($curl_session, CURLOPT_TIMEOUT, 30);
+
curl_setopt($curl_session, CURLOPT_POSTFIELDS, "action=showbackups&hostname={$hostname}");
$data = curl_exec($curl_session);
@@ -194,8 +197,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);
- curl_setopt($curl_session, CURLOPT_TIMEOUT, 10);
+ curl_setopt($curl_session, CURLOPT_CONNECTTIMEOUT, 55);
+ curl_setopt($curl_session, CURLOPT_TIMEOUT, 30);
$data = curl_exec($curl_session);
if (curl_errno($curl_session)) {