Fix WebSocket close reason truncation
This commit is contained in:
parent
a65e3383de
commit
ab89001a44
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ class ChatService(Service):
|
|||
await self.close_connection(
|
||||
client_id=client_id,
|
||||
code=status.WS_1011_INTERNAL_ERROR,
|
||||
reason=str(exc)[:120],
|
||||
reason=str(exc),
|
||||
)
|
||||
elif websocket.client_state == WebSocketState.DISCONNECTED:
|
||||
self.disconnect(client_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue