[Red5devs] Flash crashing
Walter Tak
walter at waltertak.com
Thu Sep 18 17:16:20 PDT 2008
You know that inside the job there is no reference to the (current) connection ? It's totally out of scope.
You need to save a reference to the scope which the job can access and then iterate through all connected clients before you can do any invoke().
Walter
All, I'm having some serious problems trying to keep my Flash player from either crashing or disconnecting.
The case where the flash player simply closes the client connection seems to be tracked here: http://jira.red5.org/browse/SN-51
The case where the flash player crashes seems to be tracked here: http://jira.red5.org/browse/APPSERVER-177?decorator=printable but has not yet been resolved.
I've tried getting the latest code from http://red5.googlecode.com/svn/java/server/trunk/ and running this server but the problem continues.
My server is using an "addScheduledJob(1000, new IScheduledJob(){..} that will invoke a synchronized method that in turn calls a database query and builds a list of records that are then sent to the Flash player through using connection.invoke(.)
Does anyone have any tips on what to look for to figure out what I might be doing wrong?
Thanks for your help,
Eyon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5devs_osflash.org/attachments/20080919/e8c13d81/attachment.html
More information about the Red5devs
mailing list