On Thursday 19 March 2009 16:08:00 Robin Redeker wrote: > On Thu, Mar 19, 2009 at 01:49:31PM -0500, XMPP Extensions Editor wrote: > > Version 0.6 of XEP-0198 (Stream Management) has been released. > > My main problem is to understand the purpose of being able to > include u _and_ h in a <r> or <a> element. If each <r> has to be > answered with an <a> OR <r> it seems a bit redundant to me to make > two different elements.
The reason there are two elements is because you may not want to request an ack every time you bump the counter. For example, on an otherwise idle connection, you could send <message> followed by <a>, and that's it, and the other side has no obligation to ack anytime soon. Maybe after sending 50 messages you'd throw an <r> out there just so you can finally cross off the messages in your outbound queue. This is more optimized than having the other side ack every message. -Justin