Re: [Asterisk-java-users] Automatically start a pingthread when socket read timeout is set
Brought to you by:
srt
From: Gaëtan M. <gm...@ea...> - 2008-04-01 14:14:01
|
Hi Stefan As usual, sorry for the delay :) Here is a tiny patch that starts a pingthread when an AsteriskServer is given a ManagerConnection whose socketReadTimeout>0 and stop it at shutdown(); However I don't really like it as it seems a bit misplaced and orthogonal to me. Maybe it whould be better to hide this in DefaultAsteriskServer ? But then people working directly with AsteriskServerImpl like me wouldn't even use it. Or what about a ManagerConnection subclass / implementation? After all, this is just another interface implementation and the asterisk server needn't know about this PingThread thing. Regards Gaetan On 25/03/2008, at 20:54, Stefan Reuter wrote: > Stefan Reuter wrote: >> Uhh sorry, no reason to feel sorry. It seems I've been dreaming of > > no reason to feel stupid of course :) > > =Stefan > > -- > reuter network consulting > Neusser Str. 110 > 50760 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: ste...@re... > Jabber: ste...@re... > WWW: http://www.reucon.com > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |