Skip to content

Commit 99c4db2

Browse files
authored
Merge pull request #48796 from michalvavrik/3.20
[3.20] WebSockets Next: Make sure non-websocket connections are ignored
2 parents d03f8fe + 21378a3 commit 99c4db2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extensions/websockets-next/runtime/src/main/java/io/quarkus/websockets/next/runtime/WebSocketServerRecorder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public void handle(RoutingContext ctx) {
8686
if (!ctx.request().headers().contains(HandshakeRequest.SEC_WEBSOCKET_KEY)) {
8787
LOG.debugf("Non-websocket client request ignored:\n%s", ctx.request().headers());
8888
ctx.next();
89+
return;
8990
}
9091
if (httpUpgradeChecks != null) {
9192
checkHttpUpgrade(ctx, endpointId).subscribe().with(result -> {

0 commit comments

Comments
 (0)