Skip to content

Commit

Permalink
increase default connection timeout significantly
Browse files Browse the repository at this point in the history
  • Loading branch information
tux21b committed Feb 5, 2014
1 parent b43205a commit 441cb3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type ClusterConfig struct {
Hosts []string // addresses for the initial connections
CQLVersion string // CQL version (default: 3.0.0)
ProtoVersion int // version of the native protocol (default: 2)
Timeout time.Duration // connection timeout (default: 200ms)
Timeout time.Duration // connection timeout (default: 600ms)
DefaultPort int // default port (default: 9042)
Keyspace string // initial keyspace (optional)
NumConns int // number of connections per host (default: 2)
Expand All @@ -40,7 +40,7 @@ func NewCluster(hosts ...string) *ClusterConfig {
Hosts: hosts,
CQLVersion: "3.0.0",
ProtoVersion: 2,
Timeout: 200 * time.Millisecond,
Timeout: 600 * time.Millisecond,
DefaultPort: 9042,
NumConns: 2,
NumStreams: 128,
Expand Down

0 comments on commit 441cb3e

Please sign in to comment.