Re: Yahoo accounts get disconnected after some time

"A. Craig West" <[email protected]> Mon, 9 Aug 2004 22:00:14 -0400 (EDT)
Newsgroups gmane.network.everybuddy.user
Message-ID <[email protected]>
On Sun, 8 Aug 2004, Meredydd wrote:

> On Sunday 08 August 2004 21:36, A. Craig West wrote:
> > Looks like we need to add a call to yahoo_keepalive to prevent this
> > from happening... Not sure how to fit such a thing in how everybuddy
> > does things, though...
> You'll want to set a timer (see plugin_api.h). Your best bet is probably 
> a single timer, initialised when the Yahoo plugin first starts, running 
> every X time interval and, each time, scanning through the list of open 
> Yahoo connections (by walking through local_accounts or using some 
> libyahoo2 internal list) and sending the relevant keepalives.

Ask and ye shall receive... This was actually pretty easy to fix, once I got
pointed at timers... I'll put a patch on the dev list, but I tested it, and
it seems to do the trick.

-- 
Craig West         Ph: (416) 666-1645	|  It's not a bug,
[email protected]              	|  It's a feature...