[Bug 31031] New: Add (optional) support for Nokia's heartbeat service

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Oct 21 20:31:42 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=31031

           Summary: Add (optional) support for Nokia's heartbeat service
           Product: Wocky
           Version: unspecified
          Platform: Other
               URL: http://git.collabora.co.uk/?p=user/wjt/wocky.git;a=sho
                    rtlog;h=refs/heads/iphb
        OS/Version: All
            Status: NEW
          Keywords: patch
          Severity: normal
          Priority: medium
         Component: General
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: will.thompson at collabora.co.uk
         QAContact: telepathy-bugs at lists.freedesktop.org


Maemo 5's Loudmouth was patched to add support for Nokia's IP heartbeat
service, which helps to reduce radio wake-ups. Processes which need to make
periodic network requests, but which do not care about the *exact* period, ask
a daemon to wake them up at some point during a certain time interval in the
future; the daemon chooses to wake up processes slightly early if it means that
they can be woken up at the same time as other processes.

This branch adds similar code to Wocky. It's much better than the code that was
in Loudmouth: it supports varying the interval on the fly, and supports falling
back to internal timeouts if the heartbeat service breaks somehow.

I've tested this branch in Gabble, both with and without iphb support, and
empirically tested the fallback when the heartbeat service dies. There is no
automated test for the iphb code: while the wire protocol is pretty simple, I
didn't really fancy implementing a dummy service for the test suite,
particularly since iphb hard-codes the path to the unix socket to be, ahem,
/dev/shm/iphb.

Functionally, this does change the ping behaviour of Wocky somewhat. See
http://git.collabora.co.uk/?p=user/wjt/wocky.git;a=commitdiff;h=beeb0676e3708c91dca867c1620ae72b204c1dba
for details of the change. I don't think it's too big a deal.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list