[jdev] xmppping - simple XEP-0199 pinging script
stpeter at jabber.org
Fri Jan 5 12:23:19 CST 2007
Maciek Niedzielski wrote:
> I wrote a simple script that can be used for xmpp-pinging.
> (requires python and PyXMPP)
> It tries to mimic ping command, so should be not so hard to use ;)
> A nice thing in the XEP is that even if other entity does not support
> the XEP, it will return an error, which serves for a pong. However, it
> is important to notice that not every error response is a pong. The XEP
> suggest using cancel/service-unavailable. cancel/feature-not-implemented
> (sent by jabberd2) sounds fine, too. However, there are errors like
> wait/recipient-unavailable which are definitely not pongs. So
> implementors should be careful about what they accept as pongs.
> Other thing: when pinging new jabberd14 on amessage.de, I noticed that
> it sends a pong when I pinging a (most probably) unexisting account (I
> used a random node and resource). I'm not sure if this is the right
> thing to do. I think the rule is that server should not respond for Iq
> sent to a full JID.
Returning <service-unavailable/> is the right thing to do here (at least
according to the spec).
Jabber Software Foundation
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7358 bytes
Desc: S/MIME Cryptographic Signature
More information about the JDev