{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/9b46e503bdfc5dfe07ec0f5a7c542184?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9b46e503bdfc5dfe07ec0f5a7c542184","url":"https://api.github.com/users/JustinBeckwith","login":"JustinBeckwith","id":534619},"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/1fe64ebb176498be5f73ab51986c6b7b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1fe64ebb176498be5f73ab51986c6b7b","url":"https://api.github.com/users/davidfowl","login":"davidfowl","id":95136},"updated_at":"2011-11-01T03:01:30Z","labels":[],"closed_at":"2011-10-31T08:30:16Z","comments":12,"url":"https://api.github.com/repos/SignalR/SignalR/issues/42","body":"Not sure if this is something I'm doing wrong, or a bug.  I have a hub that's implementing IDisconnect, but it doesn't seem to be invoked immediately after a client leaves the page.  I have a demo page were each new client creates a new connection - every time I refresh the page, my client connection count goes up.  I would expect the connection count to remain constant, as the previous client technically left the page.  Here's a sample of my hub code:\r\n\r\nhttps://github.com/JustinBeckwith/SignalRMap/blob/master/SignalRMap/MapHub.cs\r\n\r\nand the demo (try hitting refresh a few times)\r\n\r\nhttp://signalrmap.apphb.com/?random=true","html_url":"https://github.com/SignalR/SignalR/issues/42","title":"Disconnect not invoked in a timely fashion ","number":42,"id":2024247,"created_at":"2011-10-22T20:11:00Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/1fe64ebb176498be5f73ab51986c6b7b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1fe64ebb176498be5f73ab51986c6b7b","url":"https://api.github.com/users/davidfowl","login":"davidfowl","id":95136},"updated_at":"2011-11-01T03:01:30Z","url":"https://api.github.com/repos/SignalR/SignalR/issues/comments/2586245","body":"This fix is specific to the LongPollingTransport. You can configure how aggressive you want the disconnect to be by tweaking 2 values:\r\n\r\n    // Determines how long to wait after between long polling connections to consider a connection \"dead\"\r\n    TransportHeartBeat.Instance.DisconnectTimeout = TimeSpan.FromSeconds(10);\r\n    // Determines how often to check connection status.\r\n    TransportHeartBeat.Instance.HeartBeatInterval = TimeSpan.FromSeconds(10);","id":2586245,"created_at":"2011-11-01T03:01:30Z"}}