From: Michael Date: Sat, 14 May 2022 09:53:12 +0000 (+0000) Subject: Ensure to set the network timeout X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f8d929d94e4485ecd1457b0accdef97aa8f3c95b;p=friendica.git Ensure to set the network timeout --- diff --git a/src/Util/HTTPSignature.php b/src/Util/HTTPSignature.php index b76c12f591..4a4f6a5710 100644 --- a/src/Util/HTTPSignature.php +++ b/src/Util/HTTPSignature.php @@ -306,7 +306,7 @@ class HTTPSignature $headers['Content-Type'] = 'application/activity+json'; - $postResult = DI::httpClient()->post($target, $content, $headers); + $postResult = DI::httpClient()->post($target, $content, $headers, DI::config()->get('system', 'curl_timeout')); $return_code = $postResult->getReturnCode(); Logger::info('Transmit to ' . $target . ' returned ' . $return_code);