Skip to content

Commit

Permalink
Fix WS transport when the connection abort
Browse files Browse the repository at this point in the history
  • Loading branch information
lchenut committed Oct 19, 2023
1 parent 60f9536 commit d804441
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 d804441

Please sign in to comment.