influxdata / influxdb1-client

The old clientv2 for InfluxDB 1.x
MIT License
191 stars 112 forks source link

add configs to client.HTTPConfig #30

Open zajann opened 4 years ago

zajann commented 4 years ago

In the current version, it is unable to set transport for http.Client. If many connections and fast run, there is problem with ever-increasing TIME_WAIT socket on a network. Creating and derivering http.client pointer may be one way, but to minimize modifications of origin code i just add http.Transport config to client.HTTPConfig. I think It allows to handle http.Client Transport configurations about Connections at least.

nexustar commented 1 year ago

Thanks for your work, it helps a lot on our system. @sranka Cloud you help to merge it.