From 22396ab078497c09c848056c155b814985430cef Mon Sep 17 00:00:00 2001 From: jplanells Date: Wed, 16 Oct 2013 20:07:25 +0200 Subject: [PATCH] Update HadExceptions if socket not connected When ConnectTimeout != 0, it does not throw the exception, and HadExceptions it is not updated. Due to that, the connection is not disposed and the pool can not recover after a server crash --- src/ServiceStack.Redis/RedisNativeClient_Utils.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ServiceStack.Redis/RedisNativeClient_Utils.cs b/src/ServiceStack.Redis/RedisNativeClient_Utils.cs index 3c043d62..6fe796f0 100644 --- a/src/ServiceStack.Redis/RedisNativeClient_Utils.cs +++ b/src/ServiceStack.Redis/RedisNativeClient_Utils.cs @@ -45,6 +45,7 @@ private void Connect() { socket.Close(); socket = null; + HadExceptions = true; return; } Bstream = new BufferedStream(new NetworkStream(socket), 16 * 1024);