Handle websock exceptions in handle (#658)
This commit is contained in:
parent
0dfac6fce7
commit
b8c54068a3
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue