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

Requests built by StreamHandler instantly abort if timeout is 0 #1487

Closed
andreaskienast opened this issue Jun 5, 2016 · 0 comments
Closed

Comments

@andreaskienast
Copy link
Contributor

As documented here, timeout defaults to 0, if the option is not set. However, using StreamHandler fails with this, as $context['http']['timeout'] becomes 0 which results in a direct abort of the requests, as PHP behaves differently here.

Changing StreamHandler::add_timeout() should be sufficient here.

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

No branches or pull requests

1 participant