Skip to content

Commit

Permalink
raise DefaultTimeout from 100ms to 500ms
Browse files Browse the repository at this point in the history
Various memcached concentrator things (and things with disks) are more
common now (and TLS implementations with more round-trips). The
assumption of all memcached access being within the same rack/LAN
might no longer be appropriate.

Updates #114

Signed-off-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
bradfitz committed Sep 4, 2023
1 parent 43a49b4 commit 21f1bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memcache/memcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var (

const (
// DefaultTimeout is the default socket read/write timeout.
DefaultTimeout = 100 * time.Millisecond
DefaultTimeout = 500 * time.Millisecond

// DefaultMaxIdleConns is the default maximum number of idle connections
// kept for any single address.
Expand Down

0 comments on commit 21f1bbe

Please sign in to comment.