[Standards] Query of XEP for PING

Dave Cridland dave at cridland.net
Fri May 23 11:57:31 UTC 2014


On 23 May 2014 05:30, "priya v" <pria.v03 at gmail.com> wrote:
>
> Presence of buddy itself is indicative of network availability. Is my
understanding right? If yes, then is ping required to determine network
availability?
>

Not really. A ping is sometimes used by servers to check client
connectivity, but otherwise they're mostly used for diagnostics.

So for most purposes, presence is fine.

> Also, does this mean XMPP server should allow pings only between buddies?
>

A server might filter all sorts of traffic. But in general, clients should
except servers to route through traffic normally, and in this case be
prepared to respond with an error as of they weren't online.

It's not ideal, but probably good enough for most cases.

> Thanks,
> Priya
>
> On 22-May-2014 6:07 PM, "Dave Cridland" <dave at cridland.net> wrote:
>>
>> On 22 May 2014 08:03, priya v <pria.v03 at gmail.com> wrote:
>>>
>>> Security Considerations under XEP for PING (XEP-0199) states this -
>>>
>>> "If a connected resource receives a ping request but it does not want
to reveal its network availability to the sender for any reason (e.g.,
because the sender is not authorized to know the connected resource's
availability), then it too MUST reply with a <service-unavailable/> error."
>>>
>>> How does one determine if the sender is authorized or not authorized to
know the connected resources's availability?
>>>
>>
>> The presence subscription state (ie, in the roster) would tell you this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/standards/attachments/20140523/4c41f506/attachment.html>


More information about the Standards mailing list