[Red5devs] Flash crashing
Eyon Land
ELand at PENSON.COM
Fri Sep 19 09:01:07 PDT 2008
Walter,
Thanks for responding. The job calls a method that uses a reference to
my instance of org.red5.server.adapter.ApplicationAdapter. It uses this
reference to call the method getScope().getConnections(). It will then
iterate through all the Connections and uses the invoke.
When I did not have much data the code works great. The problem where
Flash starts to crash is when I have a lot of data to send back to the
client.
So if I trim back the data everything appears stable. I'm very worried
that Red5 is not quite ready for prime time.
Does anyone have any more tips I can try other than reducing the amount
of data to send?
Thanks again for responding,
Eyon
------------------------------
Message: 3
Date: Fri, 19 Sep 2008 02:16:20 +0200
From: "Walter Tak" <walter at waltertak.com>
Subject: Re: [Red5devs] Flash crashing
To: <red5devs at osflash.org>
Message-ID: <006a01c919ec$f4b13440$1e0313ac at dc2140>
Content-Type: text/plain; charset="iso-8859-1"
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
STATEMENT OF CONFIDENTIALITY: This message and any attachments are intended solely for the person or entity to which it is addressed and may contain confidential or privileged information. If the recipient of this message is not the addressee or a person responsible for delivering the message to the addressee, such recipient is prohibited from reading or using this message in any way. If you have received this message in error, please call the sender of this message immediately and delete the message from any computer.
More information about the Red5devs
mailing list