From 78897d2b92f66d50f0c17731baf5a42e7d1b4a0d Mon Sep 17 00:00:00 2001 From: pj42 Date: Wed, 11 Jan 2017 10:14:30 +0000 Subject: [PATCH] Disable http keepalive to fix accept4: too many open files (#100) --- http.go | 1 + 1 file changed, 1 insertion(+) diff --git a/http.go b/http.go index 65e8d3c..63aa266 100644 --- a/http.go +++ b/http.go @@ -126,6 +126,7 @@ func probeHTTP(target string, w http.ResponseWriter, module Module) (success boo TLSClientConfig: tlsconfig, Dial: dial, Proxy: http.ProxyFromEnvironment, + DisableKeepAlives: true, } client.CheckRedirect = func(_ *http.Request, via []*http.Request) error { -- 2.25.1