Add connect_timeout option. However, this currently affects cURL only.
Zend's HTTP client apparently only has a connect timeout, not a timeout for an established link or the entire request, so using connect_timeout would actually be more applicable than the existing timeout option, but this is a semantic change, though not necessarily backwards-incompatible (we could prefer connect_timeout if it is not NULL and fall back to timeout otherwise).
PHP's fsockopen()'s$timeout parameter also refers to a connection timeout rather than a request timeout, which can be specified with stream_set_timeout.
Add
connect_timeout
option. However, this currently affects cURL only.Zend's HTTP client apparently only has a connect timeout, not a timeout for an established link or the entire request, so using
connect_timeout
would actually be more applicable than the existingtimeout
option, but this is a semantic change, though not necessarily backwards-incompatible (we could preferconnect_timeout
if it is notNULL
and fall back totimeout
otherwise).PHP's
fsockopen()
's$timeout
parameter also refers to a connection timeout rather than a request timeout, which can be specified withstream_set_timeout
.