Ensure to set the network timeout

This commit is contained in:
Michael 2022-05-14 09:53:12 +00:00
parent 962b35a76a
commit f8d929d94e
1 changed files with 1 additions and 1 deletions

View File

@ -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);