Bug 29721

Summary: Presence cache's "unsure period" can finish before we've even connected.
Product: Telepathy Reporter: Will Thompson <will>
Component: gabbleAssignee: Will Thompson <will>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium Keywords: patch
Version: git master   
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/wjt/telepathy-gabble-wjt.git;a=shortlog;h=refs/heads/fix-presence-unsure-period
Whiteboard: review+
i915 platform: i915 features:

Description Will Thompson 2010-08-21 03:19:28 UTC
Gabble's presence cache has a concept of being "unsure" about presences: it waits a few seconds after we connect for other folks' presences to trickle in before declaring that those it hasn't heard about are offline.

Or at least, that's the theory. Actually, the timer starts as soon as RequestConnection() is called, so if you're on a slow connection, the period can end before we're even connected.
Comment 1 Will Thompson 2010-08-21 03:20:34 UTC
Here is a patch.
Comment 2 Simon McVittie 2010-08-23 11:46:48 UTC
Yes please!
Comment 3 Will Thompson 2010-08-23 12:13:17 UTC
commit 9a1b4f3df91b201cec25c293d9e095740068cb56
Merge: c70da96 b6de9de
Author: Will Thompson <will.thompson@collabora.co.uk>
Date:   Mon Aug 23 20:05:56 2010 +0100

    Merge branch 'fix-presence-unsure-period'

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.