DataDog / datadog-go

go dogstatsd client library for datadog
MIT License
353 stars 132 forks source link

uds: add exponential backoff write timeout #307

Open iksaif opened 6 months ago

iksaif commented 6 months ago

In order to avoid overloading the agent this gradually increase the writeTimeout up to the connectTimeout.

For uds-stream this will also reduce the re-connection rate when the agent is too slow to ingest all the packets, which is important because each new connection comes with a relatively big socket buffer.