[Red5] disconnecting a RTMPClient

Joao Henrique Silva Santos joao.s.santos at gmail.com
Thu Jan 3 02:56:31 PST 2008


I misread your reply.
I tried to invoke "disconnect" and it worked.
Thanks!

On 03/01/2008, Francesca Milan <francesca.milan at newvision.it> wrote:
>
>  Joao Henrique Silva Santos ha scritto:
>
> I'm starting to use the RTMPClient to make RTMP connections from Java
> applications, but although I can successfully connect and invoke services, I
> cannot cleanly logout ( such as by using a client.disconnect() ). I even
> tried calling directly appDisconnect(), and also tried assigning the client
> to null and as a last resource call the garbage collector, but without any
> results.
> The only way I found to logout is to crash the connection, which I managed
> by adding a
>
>    for(int i = 0; i < 1000000; ++i)
>       for(int j = 0; j < 1000000; ++j)
>          ;
>
> within the IPendingServiceCallBack.resultReceived (), which after a minute
> or so crashes the connection and the server logs:
>
>      [java] [WARN] 2008-01-03 10:15:14,458
> DefaultQuartzScheduler_Worker-8:(
> org.red5.server.net.rtmp.RTMPConnection.execute ) Closing
> RTMPMinaConnection from myIP:41505 to myIP (in: 3216, out: 3316) due to too
> much inactivity (65002).
>
> and only then does the server call appDisconnect()
>
> So my question is if there is any way to cleanly disconnect the RTMPClient
>
> best regards
>
> Joao
>
> P.S. - oh, and happy new year
>
> ------------------------------
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.orghttp://osflash.org/mailman/listinfo/red5_osflash.org
>
>  Hi,
>
> have you tryed to invoke "disconnect"? ;-)
>
> Francesca
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080103/75ca2cc2/attachment.html 


More information about the Red5 mailing list