Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onDisconnect not call on Chrome is closed, but firefox and IE are OK #85

Open
humanlang opened this issue Oct 2, 2012 · 6 comments
Open

Comments

@humanlang
Copy link

onDisconnect not call when Chrome tabpage is closed, Chrome ver:22.0.1229.79 m and others new version have this issue, but in 18...** old version is OK, firefox and IE are OK, i think this is a import issue, because Groups can't refresh for long time util server check some clients has close connect.

@kalinbogatzevski
Copy link

This is a problem when Chrome uses Pepperflash.
Not only onDisconnect, but also onUnsubscribe is not called. Which makes a lot of realtime apps fail.
I use onFail, but this is fired at least 180secs after real disconnection.
Hope Google will fix the issue with pepperflash.
To fix it - disable it from chrome://plugins

@cumulusdev
Copy link
Contributor

Yes I confirm, a new bug in the pepperflash version :-( I can do nothing against it on server side: The server receives nothing on tab closure (here is the bug), so the server learns the client death after the timeout keepalive without response... (~180sec... this time allows a reconnection client without connection lost... even with new ip and port).

@kalinbogatzevski
Copy link

i have fixed this by calling onUnsubscribe from my flash application using onbeforeclose events. and i saved my life :)

@cumulusdev cumulusdev reopened this Nov 26, 2012
@arpu
Copy link

arpu commented Dec 15, 2012

@martinduparc
Copy link

@kalinbogatzevski, would you mind giving us an example of your implementation?

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

No branches or pull requests

5 participants