-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Networking & Observability
grpc::Client currently uses WaitForConnected in its establishment logic, which as its name suggests, will wait for the provided amount of time for the gRPC channel to enter the CONNECTED state. However, the channel may make several attempts to reconnect up until the timeout is hit, including backoff and jitter. This is different behavior than asio, which will immediately report connection errors (e.g. Connection refused errors if the remote is down).
We should update this logic to stop after the first attempt fails. As an example of how this may affect things, the shell will no longer need to wait the full connectTimeout when attempting to reach a down server.
- is duplicated by
-
SERVER-97153 Implement asyncConnect function in gRPC
- Closed
- related to
-
SERVER-97153 Implement asyncConnect function in gRPC
- Closed