[Juser] Frequent timeouts with Telepathy
Pauli Virtanen
pav at iki.fi
Mon Feb 22 14:41:57 CST 2010
su, 2010-02-21 kello 09:12 +0000, Kevin Smith kirjoitti:
[clip]
> It looks from that like no stanzas have been sent over the stream for
> ten minutes, so the server's sent a ping to check that the client is
> still there. The client then seems to ignore the ping stanza, so the
> server believes the connection has failed, and closes it.
>
> If this is true, Telepathy needs a patch - replying to all iq stanzas
> (even unknown ones like ping for Telepathy) is a requirement of XMPP.
The bug report is here:
http://bugs.freedesktop.org/show_bug.cgi?id=26667
>From Telepathy-gabble's logs, I see this exchange:
************************************************
RECV [115]:
-----------------------------------
'<iq from='jabber.org' to='xxx at jabber.org/Telepathy.af938adaa' type='get'
id='ping'><ping xmlns='urn:xmpp:ping'/></iq>'
-----------------------------------
(telepathy-gabble:12775): gabble-DEBUG: connection_iq_unknown_cb: got unknown
iq:
<iq id="ping" type="get" to="xxx at jabber.org/Telepathy.af938adaa"
from="jabber.org"> <ping xmlns="urn:xmpp:ping"></ping>
</iq>
SEND:
-----------------------------------
<iq type="error" to="jabber.org" id="ping"> <ping xmlns="urn:xmpp:ping"></ping>
<error type="cancel" code="502"> <service-unavailable
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"></service-unavailable>
</error>
</iq>
-----------------------------------
RECV [1]:
-----------------------------------
' '
-----------------------------------
RECV [110]:
-----------------------------------
'<stream:error><connection-timeout
xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>'
-----------------------------------
(telepathy-gabble:12775): gabble-DEBUG: connection_stream_error_cb: got stream
error:
<stream:error> <connection-timeout
xmlns="urn:ietf:params:xml:ns:xmpp-streams"></connection-timeout>
</stream:error>
Freeing up IOChannel and file descriptor
(telepathy-gabble:12775): gabble-DEBUG: connection_disconnected_cb: called with
reason 3
************************************************
So it does seem to me that Telepathy replies to the <iq>. (I also see
the corresponding traffic by snooping the network, so the message also
goes out.) No idea if the reply is correct, though.
Cheers,
Pauli
More information about the JUser
mailing list