Skip to content

OutOfBodyExperience - removing IFrame from body#3806

Merged
moozzyk merged 1 commit intoSignalR:devfrom
jp9506:patch-1
Nov 11, 2016
Merged

OutOfBodyExperience - removing IFrame from body#3806
moozzyk merged 1 commit intoSignalR:devfrom
jp9506:patch-1

Conversation

@jp9506
Copy link
Copy Markdown
Contributor

@jp9506 jp9506 commented Nov 10, 2016

See commit c920082 by moozzyk on Aug 13, 2014

foreverFrame was moved to documentElement however stop was still looking for it in the body. End result was connection was disposed but frame survived causing null reference errors to be thrown.

Fixes #2795

See commit c920082 by moozzyk on Aug 13, 2014

foreverFrame was moved to documentElement however stop was still looking for it in the body.  End result was connection was disposed but frame survived causing null reference errors to be thrown.

Fixes SignalR#2795
@dnfclas
Copy link
Copy Markdown

dnfclas commented Nov 10, 2016

Hi @jp9506, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, DNFBOT;

@moozzyk
Copy link
Copy Markdown
Contributor

moozzyk commented Nov 10, 2016

This is a good find. Thanks!

@moozzyk
Copy link
Copy Markdown
Contributor

moozzyk commented Nov 10, 2016

Can you add a test for this (or update the existing test)?

@jp9506
Copy link
Copy Markdown
Contributor Author

jp9506 commented Nov 10, 2016

Unfortunately I am not familiar enough with github/test environment/etc. to be able to do that.

Bug was found in our production environment which is implementing a method similar to the one found here:
https://www.asp.net/signalr/overview/guide-to-the-api/handling-connection-lifetime-events#continuousreconnect

I was able to replicate the problem by disabling my LAN connection. Once the connection was re-enabled, the reconnect code worked but the javascript console was logging an error every 10 sec on the frame that wasn't removed. Given the unreliable connectivity of our user-base this spiraled out of control fairly quickly.

@moozzyk moozzyk merged commit 4e855dc into SignalR:dev Nov 11, 2016
@moozzyk
Copy link
Copy Markdown
Contributor

moozzyk commented Nov 11, 2016

OK. I added the test. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants