IE Foreverframe hanging connection #394

Closed
rpgmaker opened this Issue May 17, 2012 · 5 comments

Projects

None yet

2 participants

@rpgmaker

When using signalR in IE, if the browser is closed the streaming connection does not go away. It just sit there and hog memory.

@davidfowl
Member

That's nothing to do with SignalR. We hold onto connections until the webserver tells us it is gone. Does it stay forever? Hours? minutes? It's definitely not immediate after closing the browser but it does time out.

@rpgmaker

I did not count how long it stayed open. But one will assume that if there a connection streaming data, then closing the browser that is using the stream will automatically close the connection since the browser is no longer open. The problem also occurs when the page is refreshed. If it is done enough time(2 times), due to the limitation set by the browser no new connection would be made and would make signalR not work.

@rpgmaker

I think a good solution for this is to make a call to the server onbeforeunload and let that call close the connection that is streaming the messages.

@davidfowl
Member

I've made some changes to do this. It's a best effort /abort request that attempts to kill the other connection.

@davidfowl
Member

Dupe of #396

@davidfowl davidfowl was assigned May 18, 2012
@davidfowl davidfowl closed this May 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment