Explorar el Código

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

Louis Opter hace 12 años
padre
commit
c766d064ac
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      network_proxy.go

+ 1 - 0
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())