comparison 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
comparison
equal deleted inserted replaced
26648:8c3b1a059ecc 26649:d00a8111e479
461 void jabber_keepalive(PurpleConnection *gc) 461 void jabber_keepalive(PurpleConnection *gc)
462 { 462 {
463 JabberStream *js = gc->proto_data; 463 JabberStream *js = gc->proto_data;
464 464
465 if (js->keepalive_timeout == -1) { 465 if (js->keepalive_timeout == -1) {
466 jabber_ping_jid(js, NULL); 466 jabber_ping_jid(js, js->user->domain);
467 js->keepalive_timeout = purple_timeout_add_seconds(120, 467 js->keepalive_timeout = purple_timeout_add_seconds(120,
468 (GSourceFunc)(jabber_keepalive_timeout), gc); 468 (GSourceFunc)(jabber_keepalive_timeout), gc);
469 } 469 }
470 } 470 }
471 471