[Red5] Resources are not released when client disconnect

Storm storm.storm at gmail.com
Tue Mar 6 05:00:19 EST 2007


back in RC1 i had issues with the broadcast streams not being unregistered
in the server when the app was closed, so i got "fake" videostreams in
further calls to "getStreams". what i did was:

public void streamBroadcastClose(IBroadcastStream stream) {
        log.debug("streamBroadcastClose llamado:"+ stream.getPublishedName
());
        /*Next two lines "unregister" from system a stream that's closing
         * sometimes server does it automatically (and it should do it
always)
         * but sometimes it doesn't and that makes getStreams() return false
streams in the list.
         */
        ProviderService ps=new ProviderService();
        ps.unregisterBroadcastStream(Red5.getConnectionLocal().getScope(),
stream.getPublishedName());
    }

I haven't tried to comment those lines in RC2 and see what happens.

On 3/6/07, lionel breduillieard <lionel.breduillieard at gmail.com> wrote:
>
> Hi,
> I'm not sure but I think I had similar problem...
> When you say you have a ghost, How do you detect that
> Is it server side with a function like that
>
> public List<String> getStreams() {
>                 IConnection conn = Red5.getConnectionLocal();
>                 return getBroadcastStreamNames(conn.getScope());
>         }
> Here is my problem, I still have listed stream of unconnected
> people... and I don't know how clear
> them...
>
> Or is it on client side and the last stream  image is still show ?
> for that, I use the NetStream.Play.UnpublishNotify status' code
> to clear the client video device.
>
> my two cents
>
> yoy.
>
> 2007/3/6, Jean-Philippe DELAVALLADE <jeanphi2 at wanadoo.fr>:
> > Hi,
> > I've the same probleme with appDisconnect and i have ghost in  in my
> > visioconférence.
> > I've tried a lot of things but nothing is running.
> > There is a way or not in Red5 ?????
> > thanks
> > JP
> > Le 6 mars 07 à 01:39, Wpajunior a écrit :
> >
> > > Hello there,
> > >
> > > I've made an application where there is a screen with 10 flash
> > > videos which shows the clients when they connect to the
> > > application. But sometimes when a client disconnect (close the
> > > browser), it continues to appear in that screen (I use the an
> > > override of appLeave to call a method in that screen so the client
> > > is removed from there). Therefore, the method appLeave is not
> > > called sometimes (when the client closes the browser). I think this
> > > problem should be related to problems reported here about the
> > > server is hanging after some time running because if it is holding
> > > resources, later or soon it will hang.
> > > I'm having problems to start using the Red5 in my company thanks
> > > this problem. I'm sure that problem will be solved soon, but it is
> > > not easy to make my bosses to believe in that.
> > >
> > > Are there some news about that?
> > >
> > > thanks in advance,
> > >
> > > Junior.
> > >
> > > _______________________________________________
> > > Red5 mailing list
> > > Red5 at osflash.org
> > > http://osflash.org/mailman/listinfo/red5_osflash.org
> > >
> >
> >
> >
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>



-- 
-------------------------------------------------------------------
"Nos gusta los domingos ir al parque a pinchar los globos de los niños para
verlos llorar" .- Eskorbuto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20070306/d01293d8/attachment.htm


More information about the Red5 mailing list