Always stop the opposite goroutine in network_proxy.go (closes #1213)

Upstream-commit: c766d064ac6c2183321cb2e47ea8c0b0b2d2d238
Component: engine
This commit is contained in:
Louis Opter
2013-07-17 01:02:07 -07:00
parent ef03a6ab8c
commit be8eb02780

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())