Files
containerd/client
Paweł Gronowski 6b5efba83b client: Respect client.WithTimeout option
Fix the gRPC client dialer not using the timeout passed by the
containerd client timeout option.

Commit 63b4688175 replaced the usage of deprecated `grpc.DialContext`
with `grpc.NewClient`.

However, the `dialer.ContextDialer` relied on the context deadline to
propagate the timeout:

388fb336b0/vendor/google.golang.org/grpc/clientconn.go (L216)

This assumption is now broken, because `grpc.NewClient` doesn't do any
initial connection and defers it to the first RPC usage.

This commit passes the timeout via the `MinConnectTimeout` grpc
connection param, which will be applied to **every** connection attempt
(not just the first).

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-03-13 18:11:16 +00:00
..
2024-10-18 16:04:54 -07:00
2024-10-18 16:04:54 -07:00
2024-05-02 11:03:00 -07:00
2024-10-18 16:04:54 -07:00
2024-01-17 09:51:26 -08:00
2024-01-17 09:55:39 -08:00
2024-10-18 16:04:54 -07:00
2024-01-25 22:18:45 -08:00
2024-01-25 22:18:45 -08:00
2023-11-01 10:37:00 -07:00
2024-03-01 23:07:42 -08:00
2024-01-17 09:51:45 -08:00
2024-10-18 16:04:54 -07:00
2023-11-01 10:37:00 -07:00
2024-10-18 16:04:54 -07:00
2024-02-10 18:02:05 -08:00
2024-05-02 11:03:00 -07:00
2024-10-18 16:04:54 -07:00