[telepathy-sofiasip/master] Bump the maximum deferrable timer interval for Sofia event loop

Mikhail Zabaluev mikhail.zabaluev at nokia.com
Fri Jul 24 12:10:27 PDT 2009


It should be aligned with the maximum heartbeat interval.
---
 src/sip-connection-manager.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/sip-connection-manager.c b/src/sip-connection-manager.c
index 8182ff0..e070150 100644
--- a/src/sip-connection-manager.c
+++ b/src/sip-connection-manager.c
@@ -47,7 +47,7 @@
 #define DEBUG_FLAG TPSIP_DEBUG_CONNECTION
 #include "debug.h"
 
-/* Time bounds for heartbeat. */
+/* Time bounds for heartbeat, in seconds */
 #define TPSIP_HEARTBEAT_MIN 0
 #define TPSIP_HEARTBEAT_MAX 30
 
@@ -256,6 +256,8 @@ heartbeat_init (TpsipConnectionManager *self)
   TpsipConnectionManagerPrivate *priv = TPSIP_CONNECTION_MANAGER_GET_PRIVATE (self);
   int wait_id;
 
+  su_root_set_max_defer (priv->sofia_root, TPSIP_HEARTBEAT_MAX * 1000L + 50L);
+
   priv->heartbeat = iphb_open (&priv->heartbeat_interval);
 
   if (priv->heartbeat == NULL)
-- 
1.5.6.5




More information about the telepathy-commits mailing list