Handle websock exceptions in handle (#658)

This commit is contained in:
Tanguy 2021-11-26 13:55:35 +01:00 committed by GitHub
parent 0dfac6fce7
commit b8c54068a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -238,6 +238,10 @@ method accept*(self: WsTransport): Future[Connection] {.async, gcsafe.} =
raise exc
except TransportOsError as exc:
debug "OS Error", exc = exc.msg
except WebSocketError as exc:
debug "Websocket Error", exc = exc.msg
except AsyncStreamError as exc:
debug "AsyncStream Error", exc = exc.msg
except TransportTooManyError as exc:
debug "Too many files opened", exc = exc.msg
except TransportUseClosedError as exc: