From 75ff597818ee8eb73084c197ecfacb2395175689 Mon Sep 17 00:00:00 2001 From: Maxime mouial Date: Thu, 18 Feb 2021 12:35:10 +0100 Subject: [PATCH] Increase default UDS timeout from 1ms to 100ms --- statsd/options.go | 2 +- statsd/uds.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/statsd/options.go b/statsd/options.go index 1e4651ea..886a8238 100644 --- a/statsd/options.go +++ b/statsd/options.go @@ -24,7 +24,7 @@ var ( // DefaultSenderQueueSize is the default value for the DefaultSenderQueueSize option DefaultSenderQueueSize = 0 // DefaultWriteTimeoutUDS is the default value for the WriteTimeoutUDS option - DefaultWriteTimeoutUDS = 1 * time.Millisecond + DefaultWriteTimeoutUDS = 100 * time.Millisecond // DefaultTelemetry is the default value for the Telemetry option DefaultTelemetry = true // DefaultReceivingMode is the default behavior when sending metrics diff --git a/statsd/uds.go b/statsd/uds.go index b73d0c50..6c52261b 100644 --- a/statsd/uds.go +++ b/statsd/uds.go @@ -12,7 +12,7 @@ import ( UDSTimeout holds the default timeout for UDS socket writes, as they can get blocking when the receiving buffer is full. */ -const defaultUDSTimeout = 1 * time.Millisecond +const defaultUDSTimeout = 100 * time.Millisecond // udsWriter is an internal class wrapping around management of UDS connection type udsWriter struct {