From c766d064ac6c2183321cb2e47ea8c0b0b2d2d238 Mon Sep 17 00:00:00 2001 From: Louis Opter Date: Wed, 17 Jul 2013 01:02:07 -0700 Subject: [PATCH] Always stop the opposite goroutine in network_proxy.go (closes #1213) --- network_proxy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/network_proxy.go b/network_proxy.go index 905773e533..fb91cc1b37 100644 --- a/network_proxy.go +++ b/network_proxy.go @@ -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())