From 9fb0bd5114766f82dee0d7cdeb4f4846d400f83a Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 9 Dec 2010 14:29:38 -0800 Subject: [PATCH] Raise network timeout during friend acceptance, because encryption/decryption might slow things down. --- mod/dfrn_confirm.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 7018bf52b7..c20770481a 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -201,7 +201,15 @@ function dfrn_confirm_post(&$a,$handsfree = null) { logger('dfrn_confirm: Confirm: posting data to ' . $dfrn_confirm . ': ' . print_r($params,true), LOGGER_DATA); - // POST all this stuff to the other site. + /** + * + * POST all this stuff to the other site. + * Temporarily raise the network timeout to 120 seconds because the default 60 + * doesn't always give the other side quite enough time to decrypt everything. + * + */ + + $a->config['system']['curl_timeout'] = 120; $res = post_url($dfrn_confirm,$params);