Ensure to set the network timeout
This commit is contained in:
parent
962b35a76a
commit
f8d929d94e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue