Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Add ignoreeof flag to socat tcp listener #22

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

TimeToogo
Copy link
Contributor

After a maddening few hours of using socat as a proxy to the docker socket and wondering why docker run would inconsistently fail to return any output I found it was due to the unfortunate behaviour of socat and the docker cli.

I believe that the docker client is leaving the socket half-open which triggers socat to timeout (after 0.5s by default) if there is no data to read from the opposite direction. Increasing the timeout (socat -t10) worked but ignoring the EOF entirely seems more robust.

After a maddening few hours of using `socat` as a proxy to the docker socket and wondering why `docker run` would inconsistently fail to return any output I found it was due to the unfortunate behaviour of `socat` and the `docker` cli. I believe that the docker client is leaving the socket half-open which triggers socat to timeout (after 0.5s by default) if there is no data to read from the opposite direction. Increasing the timeout (`socat -t10`) worked but ignoring the EOF entirely seems more robust.
@ozbillwang ozbillwang merged commit b7bc1f1 into alpine-docker:master Nov 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants