jamesiarmes / php-ews

PHP Exchange Web Services
http://jamesarmes.com/php-ews/
MIT License
567 stars 302 forks source link

Configurable timeouts #527

Closed oliverseamanbarracuda closed 5 years ago

oliverseamanbarracuda commented 5 years ago

Added functions to allow curl timeouts to be set, defaulting to old behaviour.

jamesiarmes commented 5 years ago

I see that you closed this, but I just wanted to point out that this is currently possible by calling setCurlOptions() on the client object. For example:

$client->setCurlOptions(
    CURLOPT_CONNECTTIMEOUT => $connection_timeout.
    CURLOPT_TIMEOUT => $response_timeout,
);
oliverseamanbarracuda commented 5 years ago

Hi, thanks for the comment. Actually I closed it because I inadvertently PR'd it onto this master branch when I should have PR'd it onto a different fork's master branch, and that one doesn't have setCurlOptions() implemented.