[jdev] How can I reduce the (duplicated) stanzas sent?

Lines, David David.Lines at uk.thalesgroup.com
Wed May 24 09:25:16 CDT 2006


Hi. I am looking to reduce the chattiness of XMPP. I have been looking at
the stanzas sent and I notice the following occurs;

An example of a 'redundant' stanza is when requesting access to a chatroom;
a <request to room at server <mailto:room at server> > is sent with a <priority>
=0 parameter. A response is received and then another request is sent
identical to the previous but instead with only <priority> = 5 changed. Is
there a way I can simply set this <priority>=5 in the first instance and
remove the need for the 'duplicate' stanza? I notice this 'duplication'
occurs when presence information is also sent when another client joins the
chatroom, so if I can eliminate this for all C/S connections I can greatly
reduce the chattiness of the whole network.

I have changed this priority value in the client configuration but I notice
that even if I set it to 0 the 2nd stanza is still sent and is a perfect
duplicate of the 1st. 

Also when a client wants to connect the stanzas requests are as follows;

1.< version> and <stream>
2. <iq to address> and <username>
3. as above with <resource> and <digest>
....
Other stanzas

My questions are why is stanza #3 sent in addition to #2? Can this
<resource> and <digest> information be included in previous stanza via
standard configuration options?

Thanks for any help. Regards David



More information about the JDev mailing list