You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prevent "use of closed network connection" in graphite GET's
I would sometimes see errors like:
graphiteBand: graphite RequestError (http://....): Get failed: Get
http://... : read tcp 10.90.128.100:80: use of closed network connection
This kind of error is not something that should bubble up to the caller
of a http client library, but it does.
see also:
golang/go#8946golang/go#9424
there's a bunch more issues about the broken state of error handling in
net/http.
So anyway the http client tries to reuse an existing connection which
has broken. Somehow this is the caller's problem, so we address it by
not keeping any idle connection and opening a new connection each time.
This should get rid of these errors without adding much overhead.
Note that the used http transport is, other than the
MaxIdleConnsPerHost setting, the same as the default transport.
0 commit comments