Skip to content

Connect/Disconnect events not firing in IE #501

Closed
gilesbradshaw opened this Issue Jul 2, 2012 · 7 comments

4 participants

@gilesbradshaw

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

@davidfowl
SignalR member

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?

@gilesbradshaw

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.

@gilesbradshaw

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

@gilesbradshaw

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

@davidfowl
SignalR member

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

@gilesbradshaw
@davidfowl
SignalR member

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

@DamianEdwards DamianEdwards was assigned Jul 5, 2012
@NTaylorMullen NTaylorMullen added a commit that referenced this issue Jul 25, 2012
@NTaylorMullen NTaylorMullen 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
@NTaylorMullen NTaylorMullen referenced this issue Aug 2, 2012
Merged

Bug fixes #572

@davidfowl davidfowl closed this in 6f77371 Aug 2, 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.