Skip to content

Commit 513a2cb

Browse files
authored
Fixes #7935 - Review HTTP/2 error handling (#8048)
Fixed HTTP/3 in similar way as HTTP/2. Signed-off-by: Simone Bordet <[email protected]>
1 parent e4aff21 commit 513a2cb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

jetty-http3/http3-server/src/main/java/org/eclipse/jetty/http3/server/internal/HttpChannelOverHTTP3.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,11 @@ public Runnable onRequest(HeadersFrame frame)
161161
{
162162
if (LOG.isDebugEnabled())
163163
LOG.debug("onRequest() failure", x);
164-
onBadMessage(x);
165-
return null;
164+
return () -> onBadMessage(x);
166165
}
167166
catch (Throwable x)
168167
{
169-
onBadMessage(new BadMessageException(HttpStatus.INTERNAL_SERVER_ERROR_500, null, x));
170-
return null;
168+
return () -> onBadMessage(new BadMessageException(HttpStatus.INTERNAL_SERVER_ERROR_500, null, x));
171169
}
172170
}
173171

0 commit comments

Comments
 (0)