1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/libnetwork/cmd
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
..
dnet Fix new golint reported errors 2016-11-14 16:41:54 -08:00
ovrouter Update plugingetter import path. 2016-10-07 12:00:57 -07:00
proxy proxy: fix an issue about half-closing net.TCPConn after io.Copy() 2016-12-24 20:49:04 +00:00
readme_test Add support to accepting arbitrary network ID 2016-04-15 12:34:21 -07:00