Fixes #7935 - Review HTTP/2 error handling (#8048)

Fixed HTTP/3 in similar way as HTTP/2.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2022-05-23 16:12:24 +02:00 committed by GitHub
parent e4aff21272
commit 513a2cb256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -161,13 +161,11 @@ public class HttpChannelOverHTTP3 extends HttpChannel
{
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));
}
}