http: align OutgoingMessage.writable with streams#33655
http: align OutgoingMessage.writable with streams#33655ronag wants to merge 2 commits intonodejs:masterfrom
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. |
| 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.
Please read through the issue to make sure you agree with the consequences of this change.
|
@nodejs/http @nodejs/web-server-frameworks |
|
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