Skip to content
This repository

Connect/Disconnect events not firing in IE #501

Closed
GilesBradshaw opened this Issue July 02, 2012 · 7 comments

4 participants

Giles Damian Edwards David Fowler N. Taylor Mullen
Giles

This seems especially bad with internet explorer. I'm refreshing the page and not getting a disconnect event. Is there any way of periodically polling connections and dropping any which are no longer valid? - Poss wrong place to ask if so apologies

David Fowler
Owner

Are you using the latest version of SignalR? Do you have a sample to reproduce the issue? What version of IE are you using that is causing this?

Giles

Hi I'm using 0.5.2 IE 9 IIS Express from within visual studio. I'll see if I can produce a sample. I guess I could implement a heartbeat from the clients and just drop connections if the heartbeat stops. I've also noticed odd behavior when pressing F5 in IE which doesn't happen on any other browser.

Giles

here's a v simple project that illustrates it https://github.com/GilesBradshaw/ConnectionEvents

Giles

did youb get time to run it? n It does seem there is definitely a bug there

David Fowler
Owner

Yep, I can reproduce. It's just not raising the events at all on new connections for some reason.

Giles
David Fowler
Owner

It's something to do with IE caching. I'm looking to see if we can fix this in the forever frame transport. Doing this will make it work:

More info http://stackoverflow.com/questions/2648053/preventing-iframe-caching-in-browser

N. Taylor Mullen NTaylorMullen referenced this issue from a commit July 25, 2012
N. Taylor Mullen Fixed Issue #501
Fixed Connect/Disconnect events not firing in IE.  Issue was browser
caching bug, but was fixed by setting the src tag of hte iFrame to
nothing.
7b41733
David Fowler davidfowl closed this in 6f77371 August 02, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.