[jadmin] pyYIMt disconnects after 5 minutes

oliver bril oliver_bril at hotmail.com
Tue Nov 6 03:41:42 CST 2007


Norman,
 
I really thought this should solve it but unfortunately it doesn't.
 
When the user logs into the gateway I see a "got ping!" in de debug output.
 
-------------------------------

recv ('YMSG', 0, 17, 18, 1, -1516992091) {0: {144: '4', 143: '60'}} 64
got ping!
send_online {10: '0', 47: '0'}
-------------------------------
 
I have changed the line: freq = 5 * 60 #overide to ping time to try and reduce disconnects
 
into:
freq = 4 * 60
freq = 3 * 60
freq = 1 * 30
 
But no results. still receive a disconnect after 5 minutes. Does the ping itself show up in the debug output? this because i couldn't find any and i would expect to see at least one every 4,3 or 30 seconds (see above parameters)
 
although I am really not familiar with python I also have changed the line: freq = yobj.secpingtime*60 into freq = yobj.secpingtime*30. 
Also no result.
 
Any ideas left? 
 
Kind regards,
Oliver



> Date: Mon, 5 Nov 2007 21:16:15 +0200> From: norman at rasmussen.co.za> To: jadmin at jabber.org> Subject: Re: [jadmin] pyYIMt disconnects after 5 minutes> > On Nov 5, 2007 5:28 PM, oliver bril <oliver_bril at hotmail.com> wrote:> > It looks like a firewall timeout. Strange enough I do not have these> > problems with the msn,icq and aim gateway. Do these gateways send some kind> > of keep-alive?.> > It does, but I think the yahoo server _has_ to enable it. See if the> debug output writes "got ping!" anywhere (this is printed when the> yahoo server asks for pings to be enabled)> > You can tweak the ping frequency in y_ping in yahoo.py around line> 910. There's already a forced freq of 5 minutes for the ping1> counter, but ping2 is still dynamic.> > Hmmm, looking at some of the logic in the code the timers could very> well be a bit buggy, i.e. they're configured to run every say 30> seconds, but if the 30 second slot is missed they might not fire at> all!> > -- > - Norman Rasmussen> - Email: norman at rasmussen.co.za> - Home page: http://norman.rasmussen.co.za/> _______________________________________________> JAdmin mailing list> JAdmin at jabber.org> http://mail.jabber.org/mailman/listinfo/jadmin> FAQ: http://www.jabber.org/about/jadminfaq.shtml> _______________________________________________
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.jabber.org/pipermail/jadmin/attachments/20071106/08a68c47/attachment.htm 


More information about the JAdmin mailing list