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

Commit

Permalink
Merge pull request #1249 from xiaoanyunfei/bugfix/conn_close
Browse files Browse the repository at this point in the history
cConn should close immediately
  • Loading branch information
lowzj committed Mar 16, 2020
2 parents 6de0f19 + e8c93e7 commit 393bde4
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 393bde4

Please sign in to comment.