aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-12-09 14:29:38 -0800
committerFriendika <info@friendika.com>2010-12-09 14:29:38 -0800
commit9fb0bd5114766f82dee0d7cdeb4f4846d400f83a (patch)
tree8617aa66875017187d930547f62017a4e18d93c0 /mod
parent7d1c35f5cc10e1d240a545d86f9a280b6a7ae9e1 (diff)
downloadvolse-hubzilla-9fb0bd5114766f82dee0d7cdeb4f4846d400f83a.tar.gz
volse-hubzilla-9fb0bd5114766f82dee0d7cdeb4f4846d400f83a.tar.bz2
volse-hubzilla-9fb0bd5114766f82dee0d7cdeb4f4846d400f83a.zip
Raise network timeout during friend acceptance, because
encryption/decryption might slow things down.
Diffstat (limited to 'mod')
-rw-r--r--mod/dfrn_confirm.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php
index 7018bf52b..c20770481 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);