Skip to content

Commit 9e61709

Browse files
dsarnoclaude
andcommitted
Log evicted WebSocket close errors instead of silently swallowing
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2a39784 commit 9e61709

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Server/src/transport/plugin_hub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,8 @@ async def _evict_connection(cls, session_id: str, reason: str) -> None:
584584
if websocket is not None:
585585
try:
586586
await websocket.close(code=1001)
587-
except Exception:
588-
pass
587+
except Exception as close_ex:
588+
logger.debug("Error closing evicted WebSocket for session %s: %s", session_id, close_ex)
589589

590590
if cls._registry is not None:
591591
try:

0 commit comments

Comments
 (0)