Open raphink opened 8 years ago
This is likely from connection re-use, which is automatic from the http package.
In the client transport we'll either need to set DisableKeepAlives
or maybe in ContainerExecStart
we can make sure to set Close
in the request?
This should work. Currently, I have to create a new Docker client for the ContainerExecStart
.
This could probably be considered a golang bug. We should not have to manually manage this when the http package knows we've hijacked the connection.
I belive fix for this was on go1.6 https://github.com/golang/go/commit/99fb19194c03c618c0d8faa87b91ba419ae28ee3
It would seem so. @raphink any chance you can test with go 1.6?
I get this bug with all versions of go, including tip. I think it's the docker engine that needs to be rebuilt with the new version of go.
@cpuguy83 @LK4D4 saw that someone reported this issue on 1.12-rc3 (which uses go 1.6); https://github.com/docker/docker/issues/12845#issuecomment-230592427
This is caused by https://github.com/docker/docker/issues/12845
How can I fix this with
engine-api
?