From 74c402ed9db4652a455c00c8d1713b222e3ef3d5 Mon Sep 17 00:00:00 2001 From: Ivan Folgueira Bande <128452529+Ivansete-status@users.noreply.github.com> Date: Fri, 7 Jul 2023 11:32:20 +0200 Subject: [PATCH] wstransport.nim: avoid re-raising 'TransportOsError' to avoid stopping `switch.accept` (#929) --- libp2p/transports/wstransport.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libp2p/transports/wstransport.nim b/libp2p/transports/wstransport.nim index 9c4798df0..8ee443118 100644 --- a/libp2p/transports/wstransport.nim +++ b/libp2p/transports/wstransport.nim @@ -284,8 +284,7 @@ method accept*(self: WsTransport): Future[Connection] {.async, gcsafe.} = except CancelledError as exc: raise exc except TransportOsError as exc: - info "OS Error", exc = exc.msg - raise exc + debug "OS Error", exc = exc.msg except CatchableError as exc: info "Unexpected error accepting connection", exc = exc.msg raise exc