mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-11 13:34:26 +00:00
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
|
raise exc
|
||||||
except TransportOsError as exc:
|
except TransportOsError as exc:
|
||||||
debug "OS Error", exc = exc.msg
|
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:
|
except TransportTooManyError as exc:
|
||||||
debug "Too many files opened", exc = exc.msg
|
debug "Too many files opened", exc = exc.msg
|
||||||
except TransportUseClosedError as exc:
|
except TransportUseClosedError as exc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user