Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit e8c93e7

Browse files
committed
bugfix:cConn should close immediately
Signed-off-by: xiaofei.sun <[email protected]>
1 parent bc16744 commit e8c93e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dfdaemon/proxy/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func (proxy *Proxy) handleHTTPS(w http.ResponseWriter, r *http.Request) {
367367
logrus.Errorf("dial failed for %s: %v", r.Host, err)
368368
return
369369
}
370-
defer cConn.Close()
370+
cConn.Close()
371371

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

0 commit comments

Comments
 (0)