Skip to content

Commit

Permalink
Fix WS transport when the connection aborts (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
lchenut authored and romanzac committed Nov 30, 2023
1 parent 149c075 commit bdc1785
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libp2p/transports/wstransport.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bdc1785

Please sign in to comment.