diff --git a/src/JiraClient.php b/src/JiraClient.php index 44de49b2..e19f9d60 100644 --- a/src/JiraClient.php +++ b/src/JiraClient.php @@ -197,6 +197,8 @@ public function exec(string $context, array|string $post_data = null, string $cu curl_reset($this->curl); $ch = $this->curl; + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->configuration->getTimeout()); + curl_setopt($ch, CURLOPT_TIMEOUT, $this->configuration->getTimeout()); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_URL, $url);