-
-
Notifications
You must be signed in to change notification settings - Fork 15.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
DefaultHttp2ConnectionEncoder writeHeaders method always send an header frame with a priority #9842
Milestone
Comments
@vietj sounds about right... interested in doing a PR ? |
yes I will try soon. |
@vietj don't worry... working on it |
normanmaurer
added a commit
that referenced
this issue
Dec 6, 2019
…er frame with a priority Motivation: The current implementation delegates to writeHeaders(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream, ChannelPromise promise) that will send an header frame with the priority flag set and the default priority values even if the user didnt want too. Modifications: - Change DefaultHttp2ConnectionEncoder to call the correct Http2FrameWriter method depending on if the user wants to use priorities or not - Adjust tests Result: Fixes #9842
normanmaurer
added a commit
that referenced
this issue
Dec 8, 2019
… frame with a priority (#9852) Motivation: The current implementation delegates to writeHeaders(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream, ChannelPromise promise) that will send an header frame with the priority flag set and the default priority values even if the user didnt want too. Modifications: - Change DefaultHttp2ConnectionEncoder to call the correct Http2FrameWriter method depending on if the user wants to use priorities or not - Adjust tests Result: Fixes #9842
normanmaurer
added a commit
that referenced
this issue
Dec 8, 2019
… frame with a priority (#9852) Motivation: The current implementation delegates to writeHeaders(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream, ChannelPromise promise) that will send an header frame with the priority flag set and the default priority values even if the user didnt want too. Modifications: - Change DefaultHttp2ConnectionEncoder to call the correct Http2FrameWriter method depending on if the user wants to use priorities or not - Adjust tests Result: Fixes #9842
ihanyong
pushed a commit
to ihanyong/netty
that referenced
this issue
Jul 31, 2020
… frame with a priority (netty#9852) Motivation: The current implementation delegates to writeHeaders(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream, ChannelPromise promise) that will send an header frame with the priority flag set and the default priority values even if the user didnt want too. Modifications: - Change DefaultHttp2ConnectionEncoder to call the correct Http2FrameWriter method depending on if the user wants to use priorities or not - Adjust tests Result: Fixes netty#9842
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
The
DefaultHttp2ConnectionEncoder
sends an header frame without priority when thewriteHeaders(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endStream, ChannelPromise promise)
method is usedActual behavior
The current implementation delegates to
writeHeaders(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream, ChannelPromise promise)
that will send an header frame with the priority flag set and the default priority values.Steps to reproduce
Use
DefaultHttp2ConnectionEncoder#writeHeaders(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endStream, ChannelPromise promise)
with anHttp2FrameWriter
, the frame writer will have thewriteHeaders(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream, ChannelPromise promise)
called.On the wire, this will encode a different headers frame with the priority flag set instead of being unset.
Minimal yet complete reproducer code (or URL to code)
I believe this in
DefaultHttp2ConnectionEncoderTest
should do the jobThis fails with
Netty version
All of 4.1 branch
JVM version (e.g.
java -version
)Does not matter
OS version (e.g.
uname -a
)Does not matter
The text was updated successfully, but these errors were encountered: