diff libpurple/protocols/jabber/jabber.h @ 29889:0d3151a41134

jabber: Don't ping more often than once a minute. From rfc3920bis: The length of time between the use of any particular connection test is a matter of implementation and local service policy; however, it is RECOMMENDED that any such test be performed not more than once every 60 seconds.
author Paul Aurich <paul@darkrain42.org>
date Sat, 27 Feb 2010 03:49:32 +0000
parents 031fd1cd88df
children a694731e8b3f
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.h	Fri Feb 26 14:14:43 2010 +0000
+++ b/libpurple/protocols/jabber/jabber.h	Sat Feb 27 03:49:32 2010 +0000
@@ -166,6 +166,11 @@
 	time_t idle;
 	time_t old_idle;
 
+	/** When we last pinged the server, so we don't ping more
+	 *  often than once every minute.
+	 */
+	time_t last_ping;
+
 	JabberID *user;
 	JabberBuddy *user_jb;