[Red5] disconnecting a RTMPClient

Francesca Milan francesca.milan at newvision.it
Thu Jan 3 02:59:10 PST 2008


Joao Henrique Silva Santos ha scritto:
> I misread your reply.
> I tried to invoke "disconnect" and it worked.
> Thanks!
>
> On 03/01/2008, *Francesca Milan* < francesca.milan at newvision.it 
> <mailto: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.org <mailto:Red5 at osflash.org>
>>     http://osflash.org/mailman/listinfo/red5_osflash.org
>>       
>     Hi,
>
>     have you tryed to invoke "disconnect"? ;-)
>
>     Francesca
>
>
>
>     _______________________________________________
>     Red5 mailing list
>     Red5 at osflash.org <mailto: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
>   
;-)

-- 
* Francesca Milan*
/Research & Development/
New Vision Group

tel.    049.8841146    
fax    049.8840366 

videoconf. newvision.comunicarepro.it <http://newvision.comunicarepro.it>
web site www.newvision.it <http://www.newvision.it>



Le informazioni contenute in questa e-mail e nei suoi eventuali allegati 
sono da intendersi confidenziali e riservate esclusivamente ai 
destinatari. Ne sono proibiti l'utilizzo e la divulgazione a qualunque 
fine senza previa autorizzazione del mittente.
Se avete ricevuto questa e-mail per errore, vi preghiamo cortesemente di 
notificarlo (via e-mail, fax, o telefono) al mittente e di distruggerla.
Tutti i messaggi elettronici sono suscettibili di alterazioni. I dati 
personali vengono trattati esclusivamente per le finalità della presente 
comunicazione in conformità con la legislazione vigente (D.L. 196/2003 
"Codice Privacy").
Per qualunque informazione si prega di fare riferimento a 
info at newvision.it <mailto:info:@newvision.it>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080103/0a1e5e4d/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_NewVision.jpg
Type: image/jpeg
Size: 4143 bytes
Desc: not available
Url : http://osflash.org/pipermail/red5_osflash.org/attachments/20080103/0a1e5e4d/attachment-0001.jpg 


More information about the Red5 mailing list