From 4dcab16cd72878b4dc63478c9f180da7eb1f8eef Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 6 Dec 2010 18:04:32 -0500 Subject: Increase timeouts by 20 seconds --- config/autoconfigbackup/autoconfigbackup.inc | 7 +++++-- 1 file 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)) { -- cgit v1.2.3