lesstif / php-jira-rest-client

PHP classes interact Jira with the REST API.
Other
510 stars 263 forks source link

Setting Timeout Sets Connection Timeout Instead of Timeout #398

Closed jmitchell3wayfair closed 2 years ago

jmitchell3wayfair commented 3 years ago

Setting the timeout property in the configuration sets the connection timeout, instead of the actual timeout, when making requests to the php server. CURLOPT_CONNECTTIMEOUT is The number of seconds to wait while trying to connect. while CURLOPT_TIMEOUT is The maximum number of seconds to allow cURL functions to execute..

I have opened this PR to add a new property for CURLOPT_CONNECTTIMEOUT and update timeout to drive CURLOPT_TIMEOUT