questdb / go-questdb-client

Golang client for QuestDB's Influx Line Protocol
Apache License 2.0
47 stars 9 forks source link

fix(client): broken HTTP sender retries #39

Closed puzpuzpuz closed 4 months ago

puzpuzpuz commented 5 months ago

Fixes client-side retry errors like this one: http: ContentLength=11977933 with Body length 0.

The HTTP sender now creates a new http.Request instance on each retry attempt to avoid partially consumed request body.