Skip to content

Commit

Permalink
Fixes #7935 - Review HTTP/2 error handling (#8048)
Browse files Browse the repository at this point in the history
Fixed HTTP/3 in similar way as HTTP/2.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed May 23, 2022
1 parent e4aff21 commit 513a2cb
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -161,13 +161,11 @@ public Runnable onRequest(HeadersFrame frame)
{
if (LOG.isDebugEnabled())
LOG.debug("onRequest() failure", x);
onBadMessage(x);
return null;
return () -> onBadMessage(x);
}
catch (Throwable x)
{
onBadMessage(new BadMessageException(HttpStatus.INTERNAL_SERVER_ERROR_500, null, x));
return null;
return () -> onBadMessage(new BadMessageException(HttpStatus.INTERNAL_SERVER_ERROR_500, null, x));
}
}

Expand Down

0 comments on commit 513a2cb

Please sign in to comment.