Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #3 from special/master
Change keepalive interval to 2.5 minutes and synchronize wakeups
  • Loading branch information
special committed Dec 11, 2013
2 parents a93d445 + 0f1da20 commit 565605c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
28 changes: 28 additions & 0 deletions rpm/0001-Change-default-keepalive-interval-to-2.5-minutes.patch
@@ -0,0 +1,28 @@
From c082ab87c291a555f212ec07ff2f9d45ffd1ba6d Mon Sep 17 00:00:00 2001
From: John Brooks <john.brooks@jollamobile.com>
Date: Tue, 10 Dec 2013 19:45:53 -0700
Subject: [PATCH] Change default keepalive-interval to 2.5 minutes

Waking up and sending packets at 30 second intervals is unreasonable for
mobile, and seems more frequent than actually necessary. An interval of
150 seconds puts it in the next bracket of iphb wakeups.
---
src/protocol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/protocol.c b/src/protocol.c
index deeaa8d..77a20f2 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -158,7 +158,7 @@ static TpCMParamSpec jabber_params[] = {
NULL, NULL },

{ "keepalive-interval", "u", G_TYPE_UINT,
- TP_CONN_MGR_PARAM_FLAG_HAS_DEFAULT, GUINT_TO_POINTER (30),
+ TP_CONN_MGR_PARAM_FLAG_HAS_DEFAULT, GUINT_TO_POINTER (150),
0 /* unused */, NULL, NULL },

{ TP_PROP_CONNECTION_INTERFACE_CONTACT_LIST_DOWNLOAD_AT_CONNECTION,
--
1.8.3.1

8 changes: 6 additions & 2 deletions rpm/telepathy-gabble.spec
@@ -1,7 +1,7 @@
#
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.26
#
#

Name: telepathy-gabble

Expand All @@ -20,6 +20,7 @@ Source2: mktests.sh
Patch0: nemo-tests-dir-fix.patch
Patch1: 0001-Disable-parallel-build-for-extensions-directory.patch
Patch2: wocky-disable-gtkdoc.patch
Patch3: 0001-Change-default-keepalive-interval-to-2.5-minutes.patch
Requires: telepathy-mission-control
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Expand All @@ -38,6 +39,7 @@ BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(libidn)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(libiphb)
BuildRequires: python
BuildRequires: ca-certificates
BuildRequires: python-twisted
Expand Down Expand Up @@ -72,6 +74,8 @@ tests.xml for automated testing.
cd lib/ext/wocky
%patch2 -p1
cd ../../..
# 0001-Change-default-keepalive-interval-to-2.5-minutes.patch
%patch3 -p1

# >> setup
%__cp $RPM_SOURCE_DIR/mktests.sh tests/
Expand Down

0 comments on commit 565605c

Please sign in to comment.