[Red5] How to kill ghost Connections
flash at novemberain.com
Mon Aug 7 22:11:15 EDT 2006
Rodrigo Ordonez Licona wrote:
> Ideally a server process would be better, but I think its easir to
> a script that iterates through connections and somehow removes garbage ?
I thisnk IConnection.getWrittenBytes() may help you. You can assign a
periodical check with a new thread.
> Could a flash client do this ?
You can organize polling of clients like this
nc.isAlive = Delegate.create( this, isAliveHandler );
public function isAliveHandler():Boolean
Iterator<IConnection> iter = Red5.getConnectionLocal().getScope();
// ... iterate with this iterator and call iter.invoke( "isAlive",
callbackObj ); handling callback result
Michael "Antares" Klishin,
http://www.novemberain.com | mailto:michael at novemberain.com
More information about the Red5