Skip to content

cli hangs on dead connection #3652

Description

@nicks

Description

Steps to reproduce the issue:

  1. Create a socket file with a dead listener by running:
nc -lkU /home/nick/test.sock
  1. Run any docker command against the socket
DOCKER_HOST="unix:///home/nick/test.sock" docker ps

Describe the results you received:

The CLI should eventually time out and/or error

Describe the results you expected:

The CLI hangs indefinitely.

Additional information you deem important (e.g. issue happens only occasionally):

This is distilled from a longer user report and stack trace upstream:
tilt-dev/tilt#5841

Output of docker version:

docker version
Client: Docker Engine - Community
Cloud integration: v1.0.24
Version: 20.10.16
API version: 1.41
Go version: go1.17.10
Git commit: aa7e414
Built: Thu May 12 09:17:23 2022
OS/Arch: linux/amd64
Context: default
Experimental: true

Additional environment details (AWS, VirtualBox, physical, etc.):
Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions