Skip to content

Commit

Permalink
Prevent EOFException if request already handled (#4271)
Browse files Browse the repository at this point in the history
This can occur if the JettyHttpContainer in a HandlerCollection and is
downstream of another handler that successfully handled a request.

Closes #4262

Signed-off-by: David Bazile <[email protected]>
  • Loading branch information
dbazile authored and senivam committed Oct 2, 2019
1 parent da6d3e1 commit 11004cf
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ protected void configure() {
public void handle(final String target, final Request request, final HttpServletRequest httpServletRequest,
final HttpServletResponse httpServletResponse) throws IOException, ServletException {

if (request.isHandled()) {
return;
}

final Response response = request.getResponse();
final ResponseWriter responseWriter = new ResponseWriter(request, response, configSetStatusOverSendError);
final URI baseUri = getBaseUri(request);
Expand Down

0 comments on commit 11004cf

Please sign in to comment.