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

Use stream_get_contents instead of fread for ResourceInputStream #27

Merged
merged 1 commit into from
Oct 8, 2017

Conversation

kelunik
Copy link
Member

@kelunik kelunik commented Oct 8, 2017

This fixes an issue with TLS streams: https://github.com/amphp/artax/issues/138.

We still use for UDP, because stream_get_contents might read multiple packages there if I'm not mistaken.

This fixes an issue with TLS streams: https://github.com/amphp/artax/issues/138.

We still use  for UDP, because stream_get_contents might read multiple packages there if I'm not mistaken.
@kelunik kelunik requested a review from bwoebi October 8, 2017 07:41
@kelunik
Copy link
Member Author

kelunik commented Oct 8, 2017

@bwoebi isn't sure whether this really solves it, but I can't reproduce any error with the current reproduction script anymore, which failed regularly before. Let's hope we don't see any other issues with this.

@kelunik kelunik merged commit d60ba03 into master Oct 8, 2017
@kelunik kelunik deleted the tls-buffer-fix branch October 8, 2017 10:38
trowski added a commit to amphp/http-server that referenced this pull request Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant