Skip to content

Commit

Permalink
Expect:100-continue fixes for Netty
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Nesen <maxim.nesen@oracle.com>
  • Loading branch information
senivam committed Oct 11, 2023
1 parent 97a2ec2 commit 1ad0edc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
}
if (!HttpResponseStatus.CONTINUE.equals(response.status())) {
ctx.fireChannelRead(msg); //bypass the message to the next handler in line
} else {
ctx.pipeline().remove(this);
}
} else {
if (!isExpected) {
Expand Down
6 changes: 3 additions & 3 deletions docs/src/main/docbook/appendix-properties.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2041,9 +2041,9 @@
<entry><literal>jersey.config.client.request.expect.100.continue.timeout</literal></entry>
<entry>
<para>
Property for expect:100-continue timeout value which shall be waited until the full
request is sent ignoring Expect:100-continue feature.
Default timeout value is (500 ms) after which Expect:100-Continue feature is ignored.
This timeout is used for waiting for 100-Continue response when 100-Continue
is sent by the client.
Default timeout value is 500 ms after which Expect:100-Continue feature is ignored.
<literal>Since 2.41</literal>
</para>
</entry>
Expand Down

0 comments on commit 1ad0edc

Please sign in to comment.