wstransport.nim: avoid re-raising 'TransportOsError' to avoid stopping `switch.accept` (#929)

This commit is contained in:
Ivan Folgueira Bande 2023-07-07 11:32:20 +02:00 committed by GitHub
parent c45f9705ab
commit 74c402ed9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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