Skip to content

Commit 21f1bbe

Browse files
committed
raise DefaultTimeout from 100ms to 500ms
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 <brad@danga.com>
1 parent 43a49b4 commit 21f1bbe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

memcache/memcache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var (
6565

6666
const (
6767
// DefaultTimeout is the default socket read/write timeout.
68-
DefaultTimeout = 100 * time.Millisecond
68+
DefaultTimeout = 500 * time.Millisecond
6969

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

0 commit comments

Comments
 (0)