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

request body 'end' after destroy() asserts #66

Closed
ronag opened this issue May 5, 2020 · 0 comments · Fixed by #67
Closed

request body 'end' after destroy() asserts #66

ronag opened this issue May 5, 2020 · 0 comments · Fixed by #67
Assignees
Labels
bug Something isn't working

Comments

@ronag
Copy link
Member

ronag commented May 5, 2020

There is currently a race in body request handling when body.'end' is emitted after body.destroy(err) (this is a compat behavior of Readable and of legacy streams) which causes a failure on assert(this.socket) in the finished(body, ...) handler.

@ronag ronag added the bug Something isn't working label May 5, 2020
@ronag ronag self-assigned this May 5, 2020
@ronag ronag changed the title request body 'end' after destroy() request body 'end' after destroy() asserts May 5, 2020
ronag added a commit to nxtedition/undici that referenced this issue 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue May 6, 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue May 6, 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue May 6, 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue May 6, 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue May 6, 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue May 6, 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue May 6, 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: nodejs#66
ronag added a commit to nxtedition/undici that referenced this issue May 6, 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: nodejs#66
@ronag ronag closed this as completed in #67 May 6, 2020
ronag added a commit that referenced this issue May 6, 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant