]> git.mxchange.org Git - friendica.git/commitdiff
Raise network timeout during friend acceptance, because
authorFriendika <info@friendika.com>
Thu, 9 Dec 2010 22:29:38 +0000 (14:29 -0800)
committerFriendika <info@friendika.com>
Thu, 9 Dec 2010 22:29:38 +0000 (14:29 -0800)
encryption/decryption might slow things down.

mod/dfrn_confirm.php

index 7018bf52b7dec03ae6b6c173fa6ad1effd5ceb43..c20770481ad6158a49c370511a0bf32b17528aa9 100644 (file)
@@ -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);