Skip to content

Commit

Permalink
[telepathy-gabble] Change default keepalive interval to 2.5 minutes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
John Brooks committed Dec 11, 2013
1 parent cbe0744 commit 0f1da20
Show file tree
Hide file tree
Showing 2 changed files with 33 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

7 changes: 5 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 Down Expand Up @@ -73,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 0f1da20

Please sign in to comment.