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
..
client_opts.go Remove deprecated platforms package 2024-01-23 09:14:03 -08:00
client.go client: Respect client.WithTimeout option 2025-03-13 18:11:16 +00:00
container_checkpoint_opts.go use typeurl funcs for marshalling anypb.Any 2024-07-10 22:26:27 +05:30
container_opts_unix.go update ctr run to support multiple uid/gid mappings 2024-09-10 17:06:27 +00:00
container_opts.go use typeurl funcs for marshalling anypb.Any 2024-07-10 22:26:27 +05:30
container_restore_opts.go Move protobuf package under pkg 2024-05-02 10:52:03 -07:00
container.go Update errdefs to 0.3.0 2024-10-18 16:04:54 -07:00
containerstore.go Update errdefs to 0.3.0 2024-10-18 16:04:54 -07:00
diff.go Make api a Go sub-module 2024-05-02 11:03:00 -07:00
events.go Update errdefs to 0.3.0 2024-10-18 16:04:54 -07:00
export.go Move images to core/images 2024-01-17 09:51:26 -08:00
grpc.go Move namespaces to pkg/namespaces 2024-01-17 09:55:39 -08:00
image_store.go Update errdefs to 0.3.0 2024-10-18 16:04:54 -07:00
image.go Switch to new errdefs package 2024-01-25 22:18:45 -08:00
import.go Switch to new errdefs package 2024-01-25 22:18:45 -08:00
install_opts.go Move client to subpackage 2023-11-01 10:37:00 -07:00
install.go Cleanup introspection interface 2024-03-01 23:07:42 -08:00
lease.go Move leases to core/leases 2024-01-17 09:51:45 -08:00
namespaces.go Update errdefs to 0.3.0 2024-10-18 16:04:54 -07:00
oss_fuzz.go Move client to subpackage 2023-11-01 10:37:00 -07:00
process.go Update errdefs to 0.3.0 2024-10-18 16:04:54 -07:00
pull.go Disable the support for Schema 1 images 2024-02-15 11:11:35 +09:00
sandbox.go sandbox: add update api for controller 2024-06-14 02:31:51 +00:00
services.go cri: remove sandbox controller from client 2024-10-16 17:37:07 +08:00
signals.go Remove ParseSignal from client 2024-02-10 18:02:05 -08:00
snapshotter_opts_unix.go update ctr run to support multiple uid/gid mappings 2024-09-10 17:06:27 +00:00
snapshotter_opts_windows.go Move snapshots to core/snapshots 2024-01-17 09:54:09 -08:00
task_opts_unix.go Make api a Go sub-module 2024-05-02 11:03:00 -07:00
task_opts.go client: fix tasks with PID 0 cannot be forced to delete 2024-07-08 17:24:58 +08:00
task.go Update errdefs to 0.3.0 2024-10-18 16:04:54 -07:00
transfer.go Update transfer proxy to support ttrpc 2024-05-02 23:16:51 -07:00