mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2025-01-11 09:16:15 +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
|
||||
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…
x
Reference in New Issue
Block a user