From 622b1ea82ba17fa4a3d0c52d11af9ef5b8320fd4 Mon Sep 17 00:00:00 2001 From: cnlh Date: Tue, 3 Mar 2020 14:31:14 +0800 Subject: [PATCH] fix:#433 --- server/proxy/http.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/proxy/http.go b/server/proxy/http.go index 73507ee9..af4ad805 100644 --- a/server/proxy/http.go +++ b/server/proxy/http.go @@ -129,8 +129,9 @@ func (s *httpServer) handleHttp(c *conn.Conn, r *http.Request) { ) defer func() { if connClient != nil { - s.writeConnFail(c.Conn) connClient.Close() + }else { + s.writeConnFail(c.Conn) } c.Close() }()