OpenRTMFP / Cumulus

CumulusServer is a complete open source and cross-platform RTMFP server extensible by way of scripting
http://groups.google.com/group/openrtmfp-cumulus
GNU General Public License v3.0
593 stars 221 forks source link

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

Open humanlang opened 11 years ago

humanlang commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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

arpu commented 11 years ago

http://forums.adobe.com/message/4817984

arpu commented 11 years ago

https://code.google.com/p/chromium/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Pri%20Mstone%20ReleaseBlock%20OS%20Area%20Feature%20Status%20Owner%20Summary&groupby=&sort=&id=166304

martinduparc commented 10 years ago

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

Thanks!