From: pj42 Date: Wed, 11 Jan 2017 10:14:30 +0000 (+0000) Subject: Disable http keepalive to fix accept4: too many open files (#100) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=78897d2b92f66d50f0c17731baf5a42e7d1b4a0d;p=blackbox_exporter.git Disable http keepalive to fix accept4: too many open files (#100) --- 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 {