Skip to content

Fix handling of END event from source#1

Open
eldargab wants to merge 2 commits into
creationix:masterfrom
eldargab:end-fix
Open

Fix handling of END event from source#1
eldargab wants to merge 2 commits into
creationix:masterfrom
eldargab:end-fix

Conversation

@eldargab
Copy link
Copy Markdown

Hi. First of all thank you for the whole min-stream work!

I stumbled across two issues while using streamToSink(). Commits below fix them.

The first commit prevents hanging in a case when final read(null, cb) call completed synchronously.

The second prevents writeable.end() after error. Currently Node sends http response with no body in that case. Anyway it's better to be more correct and not rely on such details.

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