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

Fix Network.Socket.ByteString.Lazy.sendAll hang #340

Closed
wants to merge 2 commits into from

Conversation

jaspervdj
Copy link
Member

@jaspervdj jaspervdj commented Jul 4, 2018

The issue is that (sent >= 0) will always return True in recursive calls to sendAll, so we need a check to prevent that -- otherwise calling sendAll will always diverge.

kazu-yamamoto added a commit to kazu-yamamoto/network that referenced this pull request Jul 5, 2018
@kazu-yamamoto
Copy link
Collaborator

I have merged this with the original coding style.
Thank you for your contribution!

kazu-yamamoto added a commit to kazu-yamamoto/network that referenced this pull request Jul 5, 2018
@eborden eborden mentioned this pull request Jul 7, 2018
5 tasks
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.

2 participants