http2: make http2/compat.write more http/1 compliant#30964
http2: make http2/compat.write more http/1 compliant#30964ronag wants to merge 4 commits intonodejs:masterfrom
Conversation
|
Would be nice to eventually consolidate stream, http1, http/2 compat and http/2 in terms of the streams API & behaviours. |
This comment has been minimized.
This comment has been minimized.
69f9a1d to
dac542b
Compare
|
Unsure about semver. Maybe major? |
apapirovski
left a comment
There was a problem hiding this comment.
I don't think ERR_STREAM_DESTROYED belongs here. Also left some nits but that's the primary objection for me.
Would also like James to review ideally.
|
@apapirovski: I think you prefer to align with http1 instead of streams. I've updated the PR accordingly. |
d1a706e to
1ef5224
Compare
lib/internal/http2/compat.js
Outdated
There was a problem hiding this comment.
(It was mentioned in the linked issue, hence me bringing it up.)
There was a problem hiding this comment.
I'll leave this as is until there is more input.
There was a problem hiding this comment.
I think the biggest issue was the throw.
c8c1f00 to
19c30e7
Compare
change request was addressed, will approve after outstanding discussion is resolved
|
I believe this is |
|
Needs a rebase. |
HTTP2ServerResponse.write would behave differently than both http1 and streams. This PR makes it more compliant with stream.Writable behaviour. Refs: nodejs#29529
|
rebased |
493c71a to
9da63be
Compare
|
Landed in a1d307f 🎉 |
|
This needs a backport or other previous PRs to be backported in order to land on v12.x-staging. |
HTTP2ServerResponse.write would behave differently than both http1 and streams. This PR makes it more compliant with stream.Writable behaviour. PR-URL: nodejs#30964 Refs: nodejs#29529
HTTP2ServerResponse.write would behave differently than both http1 and streams. This PR makes it more compliant with stream.Writable behaviour. PR-URL: nodejs#30964 Refs: nodejs#29529 Backport-PR-URL: nodejs#31444
This issue is still present on 12.20.0. I think the backported-to-v12.x tag might be misapplied here, or the fix was not sufficient. `` |
HTTP2ServerResponse.writewould behave differently than both http1 and streams. This PR makes it more compliant withstream.Writablebehaviour.In particular, prior to this PR,
writewouldthrow errinstead of callingdestroy(err)Refs: #29529
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes