Commit Graph

1 Commits

Author SHA1 Message Date
Fabian @ Blax Software 88ed045899 BF close connections the legacy WebSocketHandler refuses
Server\WebSocketHandler can still be selected through
websockets.handlers.websocket. On an unknown app key verifyAppKey()
rejected its promise and then went on to set $connection->app = null and
resolve it anyway. onError() sent the 4001 frame but never closed the
socket, and a disallowed origin (4009) was left open the same way.

- verifyAppKey() returns after the rejection and passes a rejected lookup
  on.
- onOpen() refuses through refuseConnection(): websocket.error via
  onError(), then close with the exception's 4xxx code (1011 for anything
  else). A Throwable from verifyAppKey() itself is refused the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 12:29:49 +01:00