Skip to content

Conversation

wpears
Copy link

@wpears wpears commented Jun 17, 2015

In the current version, by calling ws.originalEnd before cleaning up remaining data, a finish event is emitted which can cause problems if the user's code assumes finish means no more work will be done. I ran into this with pump, which will destroy a stream as soon as it gets a finish/close/end. Thus, the early finish was swallowing errors which would have otherwise been reported. Seems probable that, without this fix, the last flush of data could be accidentally blocked.

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.

1 participant