Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "connect_timeout" option for cURL. #29

Merged
merged 1 commit into from
Aug 12, 2015
Merged

Add "connect_timeout" option for cURL. #29

merged 1 commit into from
Aug 12, 2015

Conversation

theage
Copy link
Contributor

@theage theage commented Jun 16, 2015

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.

briancline added a commit that referenced this pull request Aug 12, 2015
Add "connect_timeout" option for cURL.
@briancline briancline merged commit e092197 into softlayer:master Aug 12, 2015
@briancline
Copy link
Member

Sorry this took a while, apparently my email notifications aren't working. Thanks for the patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants