[JDEV] Getting lotsa ACKs from jabber.org

Justin Karneges justin-jdev at affinix.com
Mon Mar 31 16:10:53 CST 2003


> I could be wrong, but if the package infact does contain spaces, then it
> should be delivered to userland, and in fact: it is. I made a package
> dump hook in CenterICQ, and it sees the spaces coming.
>
> So either the client should deal with these packages, or jabber.org
> should be sending packages with spaces to the clients, or am I totally
> off here?

Yes, it is delivered to userland.  Jabber uses XML over the network, and 
whitespace between XML fragment boundaries does not harm the connection 
(technically, it counts as CDATA, but it is unused in this case). CenterICQ's 
parser simply eats the spaces.

So the result is: Yes, clients do get the space, but they do nothing with the 
space, and they are not supposed to respond with anything either.  The 
purpose of the space is simply to act as a "keep-alive" so that routers won't 
drop the TCP connection due to inactivity.

Are we done with this topic, please?? :)

-Justin



More information about the JDev mailing list