Skip to content

Commit

Permalink
Increase default UDS timeout from 1ms to 100ms
Browse files Browse the repository at this point in the history
  • Loading branch information
hush-hush committed Mar 2, 2021
1 parent 8b8be9a commit 75ff597
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion statsd/options.go
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion statsd/uds.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 75ff597

Please sign in to comment.