1
0
mirror of https://github.com/docker/cli.git synced 2026-01-19 21:41:31 +03:00

Merge pull request #1222 from lopter/master

Always stop the opposite goroutine in network_proxy.go (closes #1213)
Upstream-commit: 5231bf3653a291ae0c3cfc0e5132074cb55e71d5
Component: engine
This commit is contained in:
Victor Vieux
2013-07-17 11:40:33 -07:00

View File

@@ -68,6 +68,7 @@ func (proxy *TCPProxy) clientLoop(client *net.TCPConn, quit chan bool) {
from.CloseWrite()
}
}
to.CloseRead()
event <- written
}
utils.Debugf("Forwarding traffic between tcp/%v and tcp/%v", client.RemoteAddr(), backend.RemoteAddr())