Skip to content

Limit retry count on connection transientFailure #783

Closed
@chulup

Description

@chulup

Question Checklist

Question Subject

I use gRPC to connect my Swift daemon and client on macOS through Unix Domain Sockets.

Is there a way to limit retry count? There is ConnectionBackoff structure that has maximumBackoff property but it does not stop reconnections ever, just limits maximum time between attempts

Question Description

Expected behavior: set maximum retry count, receive up to maxRetry state changes to transientFailure and next state change is to shutdown

Observed behaviour: with any ConnectionBackoff parameters state changes connecting -> transientFailure -> connecting indefinitely and does not stop. I even tried to set maximumBackoff to 0.01 but it only changes timeout between reconnections.

There is open issue for NIO apple/swift-nio#599 regarding calling setsockopt on UDS and warnings coming out of it, but I don't think it matters here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions