Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
rpm/0001-Change-default-keepalive-interval-to-2.5-minutes.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters