Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
#11: set connect timeout to a more reasonable value (this fails for u…
Browse files Browse the repository at this point in the history
…s in production when zk is deployed across datacenters and the client is talking to an observer (IMO this should be externalized for the client to set via command line arg)
  • Loading branch information
ezbz authored and ypujante committed Apr 1, 2013
1 parent 26fdc00 commit 9bd398f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class ClientMain
{
def connectString = config.zkConnectionString ?: "127.0.0.1:2181"

client = new ZKClient(connectString, Timespan.parse('100'), null)
client = new ZKClient(connectString, Timespan.parse('10s'), null)

client.start()
log.debug "Talking to zookeeper on ${connectString}"
Expand Down

0 comments on commit 9bd398f

Please sign in to comment.