Description
Question Checklist
- Updated grpc-swift to the latest version
- I read the Contribution Guidelines
- I read README
- I searched for existing GitHub issues (especially, there are many resolved issues related to SSL)
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.