[jadmin] pyYIMt disconnects after 5 minutes
Norman Rasmussen
norman at rasmussen.co.za
Mon Nov 5 13:16:15 CST 2007
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/
More information about the JAdmin
mailing list