Skip to content

Commit

Permalink
Fixes #7117 - Timeout with Expect 100 continue when using ProxyServlet.
Browse files Browse the repository at this point in the history
Restored override of close() to avoid permanent closure of the Reader.

Signed-off-by: Simone Bordet <[email protected]>
  • Loading branch information
sbordet committed Nov 9, 2022
1 parent a6fec78 commit 70b10db
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion jetty-server/src/main/java/org/eclipse/jetty/server/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,16 @@ public BufferedReader getReader() throws IOException
{
ServletInputStream in = getInputStream();
_readerEncoding = encoding;
_reader = new BufferedReader(new InputStreamReader(in, encoding));
_reader = new BufferedReader(new InputStreamReader(in, encoding))
{
@Override
public void close() throws IOException
{
// Do not call super to avoid marking this reader as closed,
// but do close the ServletInputStream that can be reopened.
in.close();
}
};
}
else if (_channel.isExpecting100Continue())
{
Expand Down

0 comments on commit 70b10db

Please sign in to comment.