From e51566d25596b43525d4f64225d53d2f5cb18cd0 Mon Sep 17 00:00:00 2001 From: Dong Chen Date: Fri, 19 Feb 2016 14:45:15 -0800 Subject: [PATCH] Remove closeIdleConnections function. Signed-off-by: Dong Chen --- api/utils.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/api/utils.go b/api/utils.go index fd09c5f9b7..3eb33d8746 100644 --- a/api/utils.go +++ b/api/utils.go @@ -89,13 +89,6 @@ func copyHeader(dst, src http.Header) { } } -// prevents leak with https -func closeIdleConnections(client *http.Client) { - if tr, ok := client.Transport.(*http.Transport); ok { - tr.CloseIdleConnections() - } -} - func proxyAsync(engine *cluster.Engine, w http.ResponseWriter, r *http.Request, callback func(*http.Response)) error { // RequestURI may not be sent to client r.RequestURI = ""