tinify-php icon indicating copy to clipboard operation
tinify-php copied to clipboard

Options to CURL Timeout

Open adonisfigueroa opened this issue 7 years ago • 1 comments

Options to set the maximun time to wait for the Connection and for get the Response.

adonisfigueroa avatar Sep 22 '16 22:09 adonisfigueroa

Thanks! We always aim for feature parity across the client libraries (for all languages). If we implement this we also wish to think about how it applies to the other libraries. Would it make sense to you if you could set the timeout and connection timeout with an option?

For example something like:

\Tinify\setRequestTimeout(1234);
\Tinify\setConnectionTimeout(1234);

rolftimmermans avatar Sep 23 '16 16:09 rolftimmermans