Currently, the packet processing and enqueuing logic is unnecessarily
complicated (and wasteful of responses in some cases).
Simplify this processing so that:
* No logic is required to merge XML responses - this should be as simple as
appending to an array rather than comparing object attributes and values like
it currently is now.
* There are 2 buffers maintained, one for XMPP stanza responses and one for
BOSH responses (attributed and response type mainly). When the response is
about to be sent, stitch the response at the absolute last minute so that we
can now send terminate stanzas that contain XMPP XML stanzas too (currently,
this doesn't happen and rarely results in some funny cases).
Original issue reported on code.google.com by dhruvb...@gmail.com on 11 Sep 2011 at 12:31
Original issue reported on code.google.com by
dhruvb...@gmail.com
on 11 Sep 2011 at 12:31