[jdev] XEP-0199 (XMPP Ping) to test reliability
Yann Leboulanger
asterix at lagaule.org
Mon Jan 21 12:52:54 CST 2008
Peter Saint-Andre wrote:
> Sean Egan wrote:
>> On Jan 21, 2008 10:38 AM, Peter Saint-Andre <stpeter at stpeter.im> wrote:
>>> Right. I have no deep objections to using XEP-0199 -- we defined it to
>>> solve these problems! -- but you might want to be smart about how often
>>> you send a ping. Some feedback would be helpful about how often people
>>> think they need to send pings.
>>
>> Pidgin sends a <ping/> every 60 seconds and times out the connection
>> if it doesn't get a response in 20 seconds.
>
> I assume you send a ping only if you have not received an inbound packet
> in that time?
>
> Peter
>
In gajim we send whitespace ping if we haven't received or sent anything
in the past 55 seconds (cause some nat server close connection if
nothing happen in a minute)
But whitespace ping are not enough, so replacing it with xmpp-ping with
the same time would be nice.
about the time for answer, are some network connection or server so slow
that it can reply only 20 seconds later? I have no feedback on that, but
isn't 5 or 10 seconds enough?
More information about the JDev
mailing list