Browse code

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

Louis Opter authored on 2013/07/17 17:02:07
Showing 1 changed files
... ...
@@ -68,6 +68,7 @@ func (proxy *TCPProxy) clientLoop(client *net.TCPConn, quit chan bool) {
68 68
 				from.CloseWrite()
69 69
 			}
70 70
 		}
71
+		to.CloseRead()
71 72
 		event <- written
72 73
 	}
73 74
 	utils.Debugf("Forwarding traffic between tcp/%v and tcp/%v", client.RemoteAddr(), backend.RemoteAddr())