Allow for more cached connections

This commit is contained in:
Armon Dadgar 2013-12-31 17:43:56 -08:00
parent 4cb3d08aba
commit 3c3da212d7
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ func NewClient(config *Config) (*Client, error) {
// Create server
c := &Client{
config: config,
connPool: NewPool(3, 30*time.Second),
connPool: NewPool(8, 30*time.Second),
eventCh: make(chan serf.Event, 256),
logger: logger,
shutdownCh: make(chan struct{}),

View File

@ -95,7 +95,7 @@ func NewServer(config *Config) (*Server, error) {
// Create server
s := &Server{
config: config,
connPool: NewPool(5, 0),
connPool: NewPool(16, time.Minute),
eventChLAN: make(chan serf.Event, 256),
eventChWAN: make(chan serf.Event, 256),
logger: logger,