Permalink
Browse files

NCBC-332: Change the default DeadTimeout to 2 seconds.

Change-Id: Ic6c07d8d64e79a7ff8ba50b14e91670a0c3fe490
Reviewed-on: http://review.couchbase.org/30277
Reviewed-by: Jeffry Morris <jeffrymorris@gmail.com>
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
  • Loading branch information...
1 parent dc8b604 commit 0083bd07798f519ddaa2b0f818dd24439404df77 @ingenthr ingenthr committed with jeffrymorris Nov 13, 2013
@@ -43,7 +43,7 @@ public BucketConfigListener(Uri[] poolUrls, string bucketName, string bucketPass
: new NetworkCredential(bucketName, bucketPassword);
this.Timeout = 10000;
- this.DeadTimeout = 10000;
+ this.DeadTimeout = 2000;
this.RetryCount = 0;
this.RetryTimeout = new TimeSpan(0, 0, 0, 0, 500);
@@ -22,7 +22,7 @@
<add uri="http://192.168.2.200:8091/pools/default" />
</servers>
<!-- the client waits deadTmimeout time to reconnect to the pool when all the specified urls are down -->
- <socketPool connectionTimeout="00:00:10" deadTimeout="00:00:10" />
+ <socketPool connectionTimeout="00:00:10" deadTimeout="00:00:02" />
</Couchbase>
</configuration>
@@ -10,7 +10,7 @@ public class SocketPoolConfiguration : ISocketPoolConfiguration
{
private int minPoolSize = 10;
private int maxPoolSize = 20;
- private TimeSpan connectionTimeout = new TimeSpan(0, 0, 10);
+ private TimeSpan connectionTimeout = new TimeSpan(0, 0, 2);
private TimeSpan receiveTimeout = new TimeSpan(0, 0, 10);
private TimeSpan deadTimeout = new TimeSpan(0, 0, 10);
private TimeSpan queueTimeout = new TimeSpan(0, 0, 0, 2, 500);
@@ -70,7 +70,7 @@ public TimeSpan ReceiveTimeout
/// Gets or sets a value that specifies the amount of time after which an unresponsive (dead) server will be checked if it is working.
/// </summary>
/// <returns>The value of the dead timeout. The default is 10 secs.</returns>
- [ConfigurationProperty("deadTimeout", IsRequired = false, DefaultValue = "00:00:10"), PositiveTimeSpanValidator, TypeConverter(typeof(InfiniteTimeSpanConverter))]
+ [ConfigurationProperty("deadTimeout", IsRequired = false, DefaultValue = "00:00:02"), PositiveTimeSpanValidator, TypeConverter(typeof(InfiniteTimeSpanConverter))]
public TimeSpan DeadTimeout
{
get { return (TimeSpan)base["deadTimeout"]; }

0 comments on commit 0083bd0

Please sign in to comment.