mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Raise network timeout during friend acceptance, because
encryption/decryption might slow things down.
This commit is contained in:
parent
7d1c35f5cc
commit
9fb0bd5114
1 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue