datadog-go
datadog-go copied to clipboard
uds: add exponential backoff write timeout
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.