Permalink
Browse files

NCBC-132: Add support for building under Mono

Change-Id: I2568a4228d8d97b25fa48379016a7e654e12c9cb
Reviewed-on: http://review.couchbase.org/22450
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: John C. Zablocki <john@couchbase.com>
  • Loading branch information...
johnzablocki authored and John C. Zablocki committed Nov 12, 2012
1 parent 48cc56f commit a520597dae8f8531080366b4cc587daffa5cefe6
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Couchbase/HammockHttpClient.cs
@@ -26,8 +26,9 @@ public HammockHttpClient(Uri baseUri, string username, string password, bool sho
client.AddHeader("Content-Type", "application/json; charset=utf-8");
client.ServicePoint = System.Net.ServicePointManager.FindServicePoint(baseUri);
+#if ! MONO
client.ServicePoint.SetTcpKeepAlive(true, 300, 30);
-
+#endif
if (!string.IsNullOrEmpty(username) && !string.IsNullOrEmpty(password))
{
var credentials = username + ":" + password;

0 comments on commit a520597

Please sign in to comment.