Skip to content
Snippets Groups Projects
Unverified Commit ca2623e6 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Set a default request timeout


This to avoid endless running processes.
A default timeout of 30 seconds should cover the 99% case. If a job need
specific longer time it should set that.

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent 7065bcaf
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,7 @@ class Client implements IClient {
$defaults = [
RequestOptions::PROXY => $this->getProxyUri(),
RequestOptions::VERIFY => $this->getCertBundle(),
RequestOptions::TIMEOUT => 30,
];
$options = array_merge($defaults, $options);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment