pidgin: 8456404e: Increase XMPP ping timeout from 20s to 1...

elb at pidgin.im elb at pidgin.im
Sat Mar 8 12:20:39 EST 2008


-----------------------------------------------------------------
Revision: 8456404eadb372171831c58434d864e66adae25c
Ancestor: 6e57c4c3ef7f3cc9df8b67e8897a30bbe0405817
Author: elb at pidgin.im
Date: 2008-03-08T17:17:57
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8456404eadb372171831c58434d864e66adae25c

Modified files:
        ChangeLog libpurple/protocols/jabber/jabber.c

ChangeLog: 

Increase XMPP ping timeout from 20s to 120s

-------------- next part --------------
============================================================
--- ChangeLog	956d0741891f73a3b19a4919f554d15550efd2b6
+++ ChangeLog	969f913e4c6ec61bd94854813021c4f0727c6c98
@@ -14,6 +14,8 @@ version 2.4.1 ():
 	* Fix incorrectly marking some Yahoo! contacts as blocked
 	* Improved handling of UTF-8 group names on ICQ (beret)
 	* Fix a crash when starting if you have a Zephyr account
+	* Increase XMPP ping timeout to 120 seconds, to prevent poor network
+	  connections from timing out unnecessarily.
 
 	Pidgin:
 	* Remove a workaround for older versions gstreamer that was causing
============================================================
--- libpurple/protocols/jabber/jabber.c	987be3a39eb1ec8f0abd966ad6a31b37a6928a13
+++ libpurple/protocols/jabber/jabber.c	423eb23edf4b9fe1ed4d05667e5740d8fa8d68aa
@@ -411,7 +411,7 @@ void jabber_keepalive(PurpleConnection *
 	xmlnode *ping = xmlnode_new_child(iq->node, "ping");
 	xmlnode_set_namespace(ping, "urn:xmpp:ping");
 
-	js->keepalive_timeout = purple_timeout_add_seconds(20, (GSourceFunc)(jabber_pong_timeout), gc);
+	js->keepalive_timeout = purple_timeout_add_seconds(120, (GSourceFunc)(jabber_pong_timeout), gc);
 	jabber_iq_set_callback(iq, jabber_pong_cb, GINT_TO_POINTER(js->keepalive_timeout));
 	jabber_iq_send(iq);
 }


More information about the Commits mailing list