Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/jabber.h @ 30184:3ac7f10d13d4
jabber: Send whitespace keepalives every two minutes of (outgoing) silence.
This works around stupid behavior of Openfire hopefully (otherwise we
may need to send a full IQ ping instead of a whitespace tab). Closes #10767
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Wed, 21 Apr 2010 19:07:19 +0000 |
parents | 6e598ca344b3 |
children | 552616f49f94 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.h Wed Apr 21 17:43:36 2010 +0000 +++ b/libpurple/protocols/jabber/jabber.h Wed Apr 21 19:07:19 2010 +0000 @@ -255,6 +255,8 @@ /* A purple timeout tag for the keepalive */ guint keepalive_timeout; + guint max_inactivity; + guint inactivity_timer; PurpleSrvResponse *srv_rec; guint srv_rec_idx; @@ -349,6 +351,13 @@ */ gboolean jabber_stream_is_ssl(JabberStream *js); +/** + * Restart the "we haven't sent anything in a while and should send + * something or the server will kick us off" timer (obviously + * called when sending something. It's exposed for BOSH.) + */ +void jabber_stream_restart_inactivity_timer(JabberStream *js); + /** PRPL functions */ const char *jabber_list_icon(PurpleAccount *a, PurpleBuddy *b); const char* jabber_list_emblem(PurpleBuddy *b);