If users properly call client.Close(), then this will make sure that established tcp connections dont continually grow when creating new http clients. This fixes the case where users are creating new http clients on top of existing _valid_ connections. This was encountered in Telegraf when we were recreating our http clients after getting write failures that were unrelated to the actual connection being severed (such as typos in the retention policy, see https://github.com/influxdata/telegraf/issues/1058) |
||
---|---|---|
.. | ||
client.go | ||
client_test.go | ||
example_test.go |