Created
May 11, 2015 16:52
-
-
Save jeffrymorris/c723eba945af48265081 to your computer and use it in GitHub Desktop.
http-keep-alives
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = new ClientConfiguration | |
{ | |
EnableTcpKeepAlives = true, //default it true | |
TcpKeepAliveTime = 1000*60*60, //set to 60mins | |
TcpKeepAliveInterval = 5000 //KEEP ALIVE will be sent every 5 seconds after 1hr | |
}; | |
var cluster = new Cluster(config); | |
var bucket = cluster.OpenBucket(); | |
//use the bucket... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment