Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
bugfix:cConn should close immediately
Browse files Browse the repository at this point in the history
Signed-off-by: xiaofei.sun <[email protected]>
  • Loading branch information
xiaoanyunfei committed Mar 16, 2020
1 parent bc16744 commit e8c93e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dfdaemon/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func (proxy *Proxy) handleHTTPS(w http.ResponseWriter, r *http.Request) {
logrus.Errorf("dial failed for %s: %v", r.Host, err)
return
}
defer cConn.Close()
cConn.Close()

rp := &httputil.ReverseProxy{
Director: func(r *http.Request) {
Expand Down

0 comments on commit e8c93e7

Please sign in to comment.