From fc4e9a8bb869428618ee37c6525e670859cfdaf3 Mon Sep 17 00:00:00 2001 From: Ludovic Chenut Date: Mon, 23 Oct 2023 17:12:20 +0200 Subject: [PATCH] Fix WS transport when the connection aborts (#967) --- libp2p/transports/wstransport.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libp2p/transports/wstransport.nim b/libp2p/transports/wstransport.nim index 97f6cf08eb..7762c60656 100644 --- a/libp2p/transports/wstransport.nim +++ b/libp2p/transports/wstransport.nim @@ -276,6 +276,8 @@ method accept*(self: WsTransport): Future[Connection] {.async, gcsafe.} = debug "AsyncStream Error", exc = exc.msg except TransportTooManyError as exc: debug "Too many files opened", exc = exc.msg + except TransportAbortedError as exc: + debug "Connection aborted", exc = exc.msg except AsyncTimeoutError as exc: debug "Timed out", exc = exc.msg except TransportUseClosedError as exc: