Skip to content

Bug/ws#430

Merged
mondain merged 2 commits intomainfrom
bug/ws
Jan 6, 2026
Merged

Bug/ws#430
mondain merged 2 commits intomainfrom
bug/ws

Conversation

@mondain
Copy link
Copy Markdown
Member

@mondain mondain commented Jan 6, 2026

Essentially paths with trailing slashes broke websocket handling; a few other items in the ws area were fixed as part of this effort.

- Fix race condition in WebSocketPlugin.setApplication() by using
  computeIfAbsent for atomic manager creation and initialization
- Add getApplication() getter to WebSocketScopeManager to expose appScope
- Add null guard in makeScope(IScope) to prevent NPE
- Normalize trailing slashes in paths (e.g., "/live/" -> "/live") in both
  DefaultServerEndpointConfigurator.modifyHandshake() and
  WebSocketScopeManager.getScope() for consistent scope lookups
- Add null checks before putting scope in ConcurrentHashMap user properties
- Improve scope lookup to use manager.getApplication() before plugin lookup
@mondain mondain merged commit e853c62 into main Jan 6, 2026
@mondain mondain deleted the bug/ws branch January 6, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant