{"action":"created","issue":{"url":"https://api.github.com/repos/ServiceStack/Issues/issues/432","repository_url":"https://api.github.com/repos/ServiceStack/Issues","labels_url":"https://api.github.com/repos/ServiceStack/Issues/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/ServiceStack/Issues/issues/432/comments","events_url":"https://api.github.com/repos/ServiceStack/Issues/issues/432/events","html_url":"https://github.com/ServiceStack/Issues/issues/432","id":153757703,"number":432,"title":"Pubsub - Client does not reconnect after longer outage.","user":{"login":"DawidDuniec","id":19264483,"avatar_url":"https://avatars.githubusercontent.com/u/19264483?v=3","gravatar_id":"","url":"https://api.github.com/users/DawidDuniec","html_url":"https://github.com/DawidDuniec","followers_url":"https://api.github.com/users/DawidDuniec/followers","following_url":"https://api.github.com/users/DawidDuniec/following{/other_user}","gists_url":"https://api.github.com/users/DawidDuniec/gists{/gist_id}","starred_url":"https://api.github.com/users/DawidDuniec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DawidDuniec/subscriptions","organizations_url":"https://api.github.com/users/DawidDuniec/orgs","repos_url":"https://api.github.com/users/DawidDuniec/repos","events_url":"https://api.github.com/users/DawidDuniec/events{/privacy}","received_events_url":"https://api.github.com/users/DawidDuniec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"xplicit","id":1506904,"avatar_url":"https://avatars.githubusercontent.com/u/1506904?v=3","gravatar_id":"","url":"https://api.github.com/users/xplicit","html_url":"https://github.com/xplicit","followers_url":"https://api.github.com/users/xplicit/followers","following_url":"https://api.github.com/users/xplicit/following{/other_user}","gists_url":"https://api.github.com/users/xplicit/gists{/gist_id}","starred_url":"https://api.github.com/users/xplicit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xplicit/subscriptions","organizations_url":"https://api.github.com/users/xplicit/orgs","repos_url":"https://api.github.com/users/xplicit/repos","events_url":"https://api.github.com/users/xplicit/events{/privacy}","received_events_url":"https://api.github.com/users/xplicit/received_events","type":"User","site_admin":false},"milestone":null,"comments":13,"created_at":"2016-05-09T11:38:49Z","updated_at":"2016-05-16T13:26:42Z","closed_at":null,"body":"Hi,\r\n\r\nI'm having the issue when Redis have a longer outage. To reproduce it:\r\n\r\nSet timeout to small value like 1 second (it also happen with default values, but you have to wait longer):\r\nHeartbeatInterval = TimeSpan.FromSeconds(1),\r\nHeartbeatTimeout = TimeSpan.FromSeconds(1),\r\nWaitBeforeNextRestart = TimeSpan.FromSeconds(1)\r\n\r\nDrop network connection\r\n\r\nWait untill some heartbeats will fail\r\n\r\nAfter a while restore the connection\r\n\r\nIt will stuck in the RedisPubSubServer.SendHeartbeat with current status \"stopping\" and won't reconnect.\r\n\r\nCan someone provide workaround for that until is patched? Or am i doing something wrong?\r\n\r\n...\r\nOnly solution that i can think off is setting my own Timer, send heartbeat and recreate whole RedisPubSubServer object, because i can't even change a state, and while \"stopping\" i can't restart/stop/start it."},"comment":{"url":"https://api.github.com/repos/ServiceStack/Issues/issues/comments/219424169","html_url":"https://github.com/ServiceStack/Issues/issues/432#issuecomment-219424169","issue_url":"https://api.github.com/repos/ServiceStack/Issues/issues/432","id":219424169,"user":{"login":"xplicit","id":1506904,"avatar_url":"https://avatars.githubusercontent.com/u/1506904?v=3","gravatar_id":"","url":"https://api.github.com/users/xplicit","html_url":"https://github.com/xplicit","followers_url":"https://api.github.com/users/xplicit/followers","following_url":"https://api.github.com/users/xplicit/following{/other_user}","gists_url":"https://api.github.com/users/xplicit/gists{/gist_id}","starred_url":"https://api.github.com/users/xplicit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xplicit/subscriptions","organizations_url":"https://api.github.com/users/xplicit/orgs","repos_url":"https://api.github.com/users/xplicit/repos","events_url":"https://api.github.com/users/xplicit/events{/privacy}","received_events_url":"https://api.github.com/users/xplicit/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T13:26:42Z","updated_at":"2016-05-16T13:26:42Z","body":"@DawidDuniec thank you for the output, I'll look into this."}}