cli icon indicating copy to clipboard operation
cli copied to clipboard

The `socket` package should hanndle reconnects and possibly mutliple connections

Open Benehiko opened this issue 2 years ago • 0 comments

Description

The CLI socket package allows for plugins to connect to the CLI. The CLI uses this connection to signal to the plugin when to exit, based on OS termination signals. The current implementation does not allows for the plugin to reconnect to the CLI and the CLI has no way of handling multiple connections.

In the future we might want to allow for such situations. For example, the plugin might drop a connection and redial or a plugin might spawn another or the CLI might spawn multiple.

For context, please see this PR https://github.com/docker/cli/pull/4878

Benehiko avatar Feb 27 '24 12:02 Benehiko