[jadmin] pyYIMt disconnects after 5 minutes
Norman Rasmussen
norman at rasmussen.co.za
Tue Nov 6 15:59:02 CST 2007
On Nov 6, 2007 1:02 PM, Norman Rasmussen <norman at rasmussen.co.za> wrote:
> mmm, I think the timer code is more broken than I originally thought.
> This means that the ping generation code has, um, never worked.
(which means that if the yahoo transport was behind certain firewalls,
user connections would timeout after ~5 minutes of in-activity)
FYI: I've just fixed this in CVS.
CPU load should be less, but obviously network load will go up a bit.
Depending on feedback, I might add an option to 'reset' the
connection idle counter each time a packet is sent.
(The keep-alive duration is suggested dynamically by the yahoo server,
default is a keep-alive per-user every 4 minutes. I've made it
randomize the point at which keep-alives are sent so that the network
usage doesn't peak because of them too)
--
- Norman Rasmussen
- Email: norman at rasmussen.co.za
- Home page: http://norman.rasmussen.co.za/
More information about the JAdmin
mailing list