Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Go to file
Akihiro Suda 9fb8d5696e proxy: fix an issue about half-closing net.TCPConn after io.Copy()
Fix docker/docker#27539

After io.Copy(to, from), we should call to.CloseWrite(), not to.CloseRead().

Without this fix, TestTCP4ProxyHalfClose (newly added in this commit) fails as
follows:

  --- FAIL: TestTCP4ProxyHalfClose (0.00s)
          network_proxy_test.go:135: EOF

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2016-12-24 20:49:04 +00:00
libnetwork proxy: fix an issue about half-closing net.TCPConn after io.Copy() 2016-12-24 20:49:04 +00:00