On Sun, Jun 18, 2006 at 10:47:19PM -0700, [EMAIL PROTECTED] wrote:
>    Given that the protocol itself does not seem to have a defined keep-alive
>    element, what is the recommended way for a client to keep its connection
>    alive to a XMPP server ?

Since XML allows any number of whitespace between elements that is just
ignored, you can send a whitespace if you are not in the middle of
stanza. It will do, NATs and other beasts will see data flowing,

>    Can someone provide an exact wire representation of the "space keep alive"
>    method that will not break current xmpp servers  ? ( I tried to observe
>    the debug output of a couple of popular xmpp clients without much luck)

That thing is already preparsed and nicely formated into lines. As
whitespace is ignored, it is not there.

>    This is for an ad-hoc client that open a raw tcp socket and sends a few
>    things ( it is not using a full xmpp client library)   There is only one
>    instance of this client so we were otherwise thinking of using
>    jabber:iq:time or jabber:iq:version
> 
>    Are there other low overhead no-op packets we could be sending instead ?
>    At the moment I am interested only in sending some valid traffic for this
>    purpose (and not quite looking for  a valid response as long - as it does
>    not terminate the connection)

-- 
One semi-random fortune:

Einstein argued that there must be simplified explanations of nature, because
God is not capricious or arbitrary.  No such faith comforts the software
engineer.
                -- Fred Brooks

Michal "vorner" Vaner

Attachment: pgpIgtg0k2SvR.pgp
Description: PGP signature

Reply via email to