-
Notifications
You must be signed in to change notification settings - Fork 30k
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
http2: [compat api] add writable* properties #33506
Conversation
added writableHighWaterMark, writableLength, and writableFinished properties with test. Refs: nodejs#29829
} | ||
|
||
get writableFinished() { | ||
return this[kStream].writableFinished; |
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 suspect this will need a special case and test for state.headRequest
.
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.
Though I think headRequest
is slightly broken or maybe I don't understand it. There is special handling for it in Http2ServerResponse.end()
but not in Http2ServerResponse.write()
? Not sure who is a good ping there. @jasnell?
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.
EDIT: please create an issue if landing this PR without resolving this.
Issue: #33543
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.
LGTM, added a comment for state.headRequest
but I would be fine with sorting that out in a follow up PR if it is difficult to resolve.
EDIT: please create an issue if landing this PR without resolving this.
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.
lgtm
Co-authored-by: Luigi Pinca <[email protected]>
added writableHighWaterMark, writableLength, and writableFinished properties with test. Refs: nodejs#29829 PR-URL: nodejs#33506 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Landed in 99abaf9 |
added writableHighWaterMark, writableLength, and writableFinished properties with test. Refs: #29829 PR-URL: #33506 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
added writableHighWaterMark, writableLength, and writableFinished properties with test. Refs: #29829 PR-URL: #33506 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
added writableHighWaterMark, writableLength, and writableFinished properties with test. Refs: #29829 PR-URL: #33506 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
added writableHighWaterMark, writableLength, and writableFinished
properties with test.
Refs: #29829 (9th, 10th, and 11th sub-issues)
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes