Skip to content

Conversation

@ronag
Copy link
Member

@ronag ronag commented May 5, 2020

Readable can emit 'end' after .destroy() as well
as legacy streams might not implement the whole
Readable contract properly. Try to handle these
edge cases better.

Fixes: #66

@ronag ronag force-pushed the fix-request-body-edge-case branch 2 times, most recently from 9c9d507 to 68e5e9e Compare May 5, 2020 20:40
@ronag

This comment has been minimized.

@ronag ronag force-pushed the fix-request-body-edge-case branch 12 times, most recently from e5eddc1 to 0a80029 Compare May 6, 2020 10:56
Readable can emit 'end' after .destroy() as well
as legacy streams might not implement the whole
Readable contract properly. Try to handle these
edge cases better.

Fixes: nodejs#66
@ronag ronag force-pushed the fix-request-body-edge-case branch from 0a80029 to 6d932fb Compare May 6, 2020 11:20
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ronag ronag merged commit d8c16c8 into nodejs:master May 6, 2020
@ronag ronag deleted the fix-request-body-edge-case branch May 6, 2020 16:30
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.

request body 'end' after destroy() asserts

3 participants