mirror of
https://github.com/logos-storage/nim-libp2p.git
synced 2026-01-04 06:33:10 +00:00
wstransport.nim: avoid re-raising 'TransportOsError' to avoid stopping switch.accept (#929)
This commit is contained in:
parent
c45f9705ab
commit
74c402ed9d
@ -284,8 +284,7 @@ method accept*(self: WsTransport): Future[Connection] {.async, gcsafe.} =
|
|||||||
except CancelledError as exc:
|
except CancelledError as exc:
|
||||||
raise exc
|
raise exc
|
||||||
except TransportOsError as exc:
|
except TransportOsError as exc:
|
||||||
info "OS Error", exc = exc.msg
|
debug "OS Error", exc = exc.msg
|
||||||
raise exc
|
|
||||||
except CatchableError as exc:
|
except CatchableError as exc:
|
||||||
info "Unexpected error accepting connection", exc = exc.msg
|
info "Unexpected error accepting connection", exc = exc.msg
|
||||||
raise exc
|
raise exc
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user