From 9d44f1ac5a751522434757b9c824c31994bdff6e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 30 Nov 2010 21:14:05 -0500 Subject: Set CURLOPT_CONNECTTIMEOUT to 35 seconds --- config/autoconfigbackup/autoconfigbackup.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config') 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"); -- cgit v1.2.3