Skip to content

Commit

Permalink
NCBC-892: In ClientConfiguration TcpKeepAliveTime and TcpKeepAliveInt…
Browse files Browse the repository at this point in the history
…erval are switched

Motivation
----------
Default values for TcpKeepAliveTime and TcpKeepAliveInterval are switched
in Client Configuration, thus the keep alives start after 1s of inactivity.

Modification
------------
Switched around values for TcpKeepAliveTime and
TcpKeepAliveInterval in ClientConfiguration.cs

Results
-------
The TCP keep alives will be sent correctly after 2hrs of inactivity at
intervals of 1s by default.

Change-Id: I301b4a7079db44a911856697c8191ce08229316d
Reviewed-on: http://review.couchbase.org/51148
Reviewed-by: Jeffry Morris <jeffrymorris@gmail.com>
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>
  • Loading branch information
dionoid authored and jeffrymorris committed May 18, 2015
1 parent a8ae36b commit 354e20a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Src/Couchbase/Configuration/Client/ClientConfiguration.cs
Expand Up @@ -68,9 +68,9 @@ public ClientConfiguration()
BufferSize = 1024 * 16;
DefaultOperationLifespan = 2500;//ms
EnableTcpKeepAlives = true;
TcpKeepAliveInterval = 2*60*60*1000;
TcpKeepAliveTime = 1000;
NodeAvailableCheckInterval = 1000;

TcpKeepAliveTime = 2*60*60*1000;
TcpKeepAliveInterval = 1000;

//the default serializer
Serializer = SerializerFactory.GetSerializer();
Expand Down

0 comments on commit 354e20a

Please sign in to comment.