Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/jabber.c @ 26649:d00a8111e479
Send XMPP keepalive pings to our server, not our bare JID.
jabberd doesn't seem to follow the same semantics for a non-existent 'to'
on a stanza; the response comes from our own full JID. Addressing the pings
to the server's JID should sidestep that problem.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Wed, 15 Apr 2009 01:44:17 +0000 |
parents | df9042312063 |
children | 332d967670e0 74dcea0f8457 50f292353414 a8dbbcd069ab 7488da258ac8 06da00c70eae b623c1824f29 ce876e58cf6a |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Sun Apr 12 23:57:27 2009 +0000 +++ b/libpurple/protocols/jabber/jabber.c Wed Apr 15 01:44:17 2009 +0000 @@ -463,7 +463,7 @@ JabberStream *js = gc->proto_data; if (js->keepalive_timeout == -1) { - jabber_ping_jid(js, NULL); + jabber_ping_jid(js, js->user->domain); js->keepalive_timeout = purple_timeout_add_seconds(120, (GSourceFunc)(jabber_keepalive_timeout), gc); }