From e5c22ce5e64d2111f4acb4a8d18a1041e98a239b Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sun, 15 Mar 2020 00:47:14 +0100 Subject: no need to close idle connections, we disable keepalive --- htping.go | 1 - 1 file changed, 1 deletion(-) diff --git a/htping.go b/htping.go index a3c6832..b4ac426 100644 --- a/htping.go +++ b/htping.go @@ -147,7 +147,6 @@ func ping(url string, seq int, results chan result) { written, _ := io.Copy(ioutil.Discard, res.Body) res.Body.Close() - client.CloseIdleConnections() stop := time.Now() -- cgit 1.4.1