{#} Replies are directed back to [EMAIL PROTECTED]
{#} To reply to the author, write to Jason Townsend <[EMAIL PROTECTED]>
on 3/1/02 9:11 AM, Jonathan Baumgartner <[EMAIL PROTECTED]> wrote:
>> There was already support for an idle timer which would ping the Yahoo
>> server every 90 seconds, but the timer was not being enabled and disabled
>> when Yahoo connected and disconnected. I've enabled this timer in TOT and
>> had a connection up for over an hour and 15 minutes with the changes in
>> place with no activity during that time. Please try a TOT build to see if
>> this change fixes the problem for you.
>
> Hmm. I thought I was all good, because it said I was online for more
> than an hour. This time when I tried to send a message to someone
> after that hour had elapsed, I was informed that that user was
> offline, and then suddenly *I* was offline. Got the same stuff in the
> Console about being reset by peer.
>
> So it duped me into thinking I was online when I really wasn't, or
> else sending a message to an offline user threw me off. Not sure
> which.
I've updated the periodic ping to check to make sure the ping successfully
sends, and notice that you are disconnected if it doesn't. I've also removed
the SIGPIPE handler since it seems that all SIGPIPEs are picked up by it,
not just Yahoo related ones. So it is wrong to assume Yahoo is disconnected
if you get a SIGPIPE; it could have been a different service.
-Jason
--
<http://homepage.mac.com/townsend/>
"Do, or do not. There is no 'try'."
- Yoda (_The Empire Strikes Back_)
{#} ----------------------------------------------------+[ fire ]+---