Skip to content

Commit

Permalink
Disable http keepalive to fix accept4: too many open files (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
pj42 authored and brian-brazil committed Jan 11, 2017
1 parent 1b3a6db commit 78897d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 78897d2

Please sign in to comment.