-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
http: align OutgoingMessage.writable with streams #33655
Conversation
43d902a
to
dfe1c66
Compare
efba06d
to
1bff16b
Compare
I have a feeling this could be significantly breaking. I thought we tried to do this in the past and we had to revert. |
@mcollina Did you see #33591 (comment)? Currently on Node.js 14 you need to check whether an |
Yeah, it would be fantastic to get this fixed but it definitely can be breaking. /cc @nodejs/web-server-frameworks folks |
8ae28ff
to
2935f72
Compare
I might be ok to add this as a fix, but I would be way more comfortable in reverting #33131 in v14 instead of also landing this. We might risk to break things even more. Then we should land both these changes in master. |
Should be a computed value that looks at finished and destroyed state. Fixes: nodejs#33643
Please keep this in mind when approving this PR. |
@@ -4,16 +4,13 @@ const common = require('../common'); | |||
const assert = require('assert'); | |||
const { get, createServer } = require('http'); | |||
|
|||
// res.writable should not be set to false after it has finished sending | |||
// Ref: https://github.com/nodejs/node/issues/15029 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please read through the issue to make sure you agree with the consequences of this change.
@nodejs/http @nodejs/web-server-frameworks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really convinced as I think the problems outlined in #15029 would represent themselves again.
Labelling this as blocked until I have time to dig further into the referenced issue. |
Should be a computed value that looks at finished and
destroyed state.
Fixes: #33643
Please keep this in mind when approving this PR.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes