Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlh committed Mar 3, 2020
1 parent 5970d8b commit 622b1ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/proxy/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}()
Expand Down

0 comments on commit 622b1ea

Please sign in to comment.