Ensure to set the network timeout

This commit is contained in:
Michael 2022-05-14 09:53:12 +00:00
parent 962b35a76a
commit f8d929d94e

View file

@ -306,7 +306,7 @@ class HTTPSignature
$headers['Content-Type'] = 'application/activity+json'; $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(); $return_code = $postResult->getReturnCode();
Logger::info('Transmit to ' . $target . ' returned ' . $return_code); Logger::info('Transmit to ' . $target . ' returned ' . $return_code);