From 4b2be68cc9210d383acaeeb74ba337170aea2433 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 31 Dec 2013 17:43:56 -0800 Subject: [PATCH] Allow for more cached connections --- consul/client.go | 2 +- consul/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/consul/client.go b/consul/client.go index 6109fddc7b..eb3a2ad6a9 100644 --- a/consul/client.go +++ b/consul/client.go @@ -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{}), diff --git a/consul/server.go b/consul/server.go index 732f995fc4..879c37be51 100644 --- a/consul/server.go +++ b/consul/server.go @@ -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,