{"action":"created","issue":{"url":"https://api.github.com/repos/ironyx/dache/issues/34","labels_url":"https://api.github.com/repos/ironyx/dache/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/ironyx/dache/issues/34/comments","events_url":"https://api.github.com/repos/ironyx/dache/issues/34/events","html_url":"https://github.com/ironyx/dache/issues/34","id":55404977,"number":34,"title":"Dache cache host, stuck at most of the times ?","user":{"login":"Mds92","id":4269991,"avatar_url":"https://avatars.githubusercontent.com/u/4269991?v=3","gravatar_id":"","url":"https://api.github.com/users/Mds92","html_url":"https://github.com/Mds92","followers_url":"https://api.github.com/users/Mds92/followers","following_url":"https://api.github.com/users/Mds92/following{/other_user}","gists_url":"https://api.github.com/users/Mds92/gists{/gist_id}","starred_url":"https://api.github.com/users/Mds92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mds92/subscriptions","organizations_url":"https://api.github.com/users/Mds92/orgs","repos_url":"https://api.github.com/users/Mds92/repos","events_url":"https://api.github.com/users/Mds92/events{/privacy}","received_events_url":"https://api.github.com/users/Mds92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-25T08:27:35Z","updated_at":"2015-01-26T04:43:51Z","closed_at":null,"body":"I'm working with latest version 1.5.5 of dache.net\r\nI hosted it on Windows Services with the following config:\r\n\r\n<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\r\n&lt;configuration&gt;\r\n  &lt;configSections&gt;\r\n        &lt;section name=&quot;cacheHostSettings&quot; type=&quot;Dache.CacheHost.Configuration.CacheHostConfigurationSection, Dache.CacheHost&quot; allowExeDefinition=&quot;MachineToApplication&quot; /&gt;\r\n    &lt;/configSections&gt;\r\n  &lt;startup&gt;\r\n    &lt;supportedRuntime version=&quot;v4.0&quot; sku=&quot;.NETFramework,Version=v4.5&quot; /&gt;\r\n  &lt;/startup&gt;\r\n  &lt;cacheHostSettings maximumConnections=&quot;40&quot; cacheMemoryLimitPercentage=&quot;85&quot; maximumMessageSizeKB=&quot;2097151&quot; port=&quot;33333&quot; /&gt;\r\n&lt;/configuration&gt;</pre>\r\n\r\nIn clients I have the following config:\r\n\r\n<pre><configSections>\r\n    .\r\n\t.\r\n\t.\r\n    &lt;section name=&quot;cacheClientSettings&quot; type=&quot;Dache.Client.Configuration.CacheClientConfigurationSection, Dache.Client&quot; /&gt;\r\n    .\r\n\t.\r\n\t.\r\n  &lt;/configSections&gt;\r\n  &lt;cacheClientSettings hostReconnectIntervalSeconds=&quot;10&quot; hostRedundancyLayers=&quot;0&quot; maximumMessageSizeKB=&quot;2097151&quot;&gt;\r\n    &lt;cacheHosts&gt;\r\n      &lt;add address=&quot;localhost&quot; port=&quot;33333&quot; /&gt;\r\n    &lt;/cacheHosts&gt;\r\n  &lt;/cacheClientSettings&gt;</pre>\r\n\r\nIt's OK at first and Clients can connect to host without any problems.\r\nBut after some(1,2) minutes cache host stuck and begin to throw  the following exception (from log file):\r\n\r\n<pre>2015-01-25T11:44:14 WARN Dache Client Disconnected : System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host\r\n   at SimplSockets.SimplSocketServer.ReceiveCallback(IAsyncResult asyncResult) in d:\\SimplSockets\\SimplSockets\\SimplSocketServer.cs:line 473\r\n2015-01-25T11:45:31 WARN Dache Client Disconnected : System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host\r\n   at SimplSockets.SimplSocketServer.ReceiveCallback(IAsyncResult asyncResult) in d:\\SimplSockets\\SimplSockets\\SimplSocketServer.cs:line 473\r\n...</pre>\r\n\r\nAbove exception happens more in debug mode.\r\nWhat's wrong?\r\n\r\n StackTrace of clietns:\r\n<pre>[NoCacheHostsAvailableException: There are no reachable cache hosts available. Verify your client settings and ensure that all cache hosts can be successfully communicated with from this client.]\r\n   Dache.Client.CacheClient.DetermineBucket(String cacheKey) in d:\\Dache\\Dache.Client\\CacheClient.cs:947\r\n   Dache.Client.CacheClient.TryGet(String cacheKey, T& value) in d:\\Dache\\Dache.Client\\CacheClient.cs:137\r\n   Smartiz.CacheClient.CacheProvider.TryGet(String key, T& value) in d:\\Works\\Smartiz\\Smartiz.CacheClient\\CacheProvider.cs:34\r\n   Smartiz.CacheClient.CachedParams.get_AllAttachmentsTypes() in d:\\Works\\Smartiz\\Smartiz.CacheClient\\CacheTools\\CachedParams.cs:36\r\n   Smartiz.CacheClient.MappingsProfile.Configure() in d:\\Works\\Smartiz\\Smartiz.CacheClient\\Mapper\\MappingsProfile.cs:127\r\n   AutoMapper.ConfigurationStore.AddProfile() +56\r\n   Smartiz.CacheClient.AutoMapperConfiguration.<Configure>b__0(IConfiguration x) in d:\\Works\\Smartiz\\Smartiz.CacheClient\\Mapper\\AutoMapperConfiguration.cs:7\r\n   AutoMapper.Mapper.Initialize(Action`1 action) +41\r\n   Smartiz.CacheClient.AutoMapperConfiguration.Configure() in d:\\Works\\Smartiz\\Smartiz.CacheClient\\Mapper\\AutoMapperConfiguration.cs:7\r\n   Smartiz.Admin.MvcApplication.Application_Start() in d:\\Works\\Smartiz\\Smartiz.Admin\\Global.asax.cs:54\r\n\r\n[HttpException (0x80004005): There are no reachable cache hosts available. Verify your client settings and ensure that all cache hosts can be successfully communicated with from this client.]\r\n   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9916673\r\n   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118\r\n   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172\r\n   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336\r\n   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296\r\n\r\n[HttpException (0x80004005): There are no reachable cache hosts available. Verify your client settings and ensure that all cache hosts can be successfully communicated with from this client.]\r\n   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9930568\r\n   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101\r\n   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254</pre>"},"comment":{"url":"https://api.github.com/repos/ironyx/dache/issues/comments/71414301","html_url":"https://github.com/ironyx/dache/issues/34#issuecomment-71414301","issue_url":"https://api.github.com/repos/ironyx/dache/issues/34","id":71414301,"user":{"login":"Mds92","id":4269991,"avatar_url":"https://avatars.githubusercontent.com/u/4269991?v=3","gravatar_id":"","url":"https://api.github.com/users/Mds92","html_url":"https://github.com/Mds92","followers_url":"https://api.github.com/users/Mds92/followers","following_url":"https://api.github.com/users/Mds92/following{/other_user}","gists_url":"https://api.github.com/users/Mds92/gists{/gist_id}","starred_url":"https://api.github.com/users/Mds92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mds92/subscriptions","organizations_url":"https://api.github.com/users/Mds92/orgs","repos_url":"https://api.github.com/users/Mds92/repos","events_url":"https://api.github.com/users/Mds92/events{/privacy}","received_events_url":"https://api.github.com/users/Mds92/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T04:43:51Z","updated_at":"2015-01-26T04:43:51Z","body":"Well, I'm using the default methods: `AddOrUpdate` and `TryGet` to send or get big objects.\r\nI thinks all data send with one operation.\r\nIn other words:\r\nI'm using `AddOrUpdate` method to send 12 MB data"}}