Skip to content

Wrong order of received bosh responses #709

@damencho

Description

@damencho

Hey Jitsi Team here. We ran into issue where we were receiving stanzas in wrong order for bosh.

Here is a description of our observation:

  1. We have an open long-poll request with rid=1
  2. We send a presence to a MUC in a new request with rid=2. We expect to receive back a presence, followed shortly by an IQ.
  3. The remote side sends a presence in rid=1, and an IQ in rid=2
  4. Strophe fires the IQ handler first (received in rid=2), and then the presence handler (received in rid=1)

We expect that in 4 strophe should fire the presence (rid=1) first and then the IQ (rid=2). We suspect the issue happens when the rid=2 request completes before the rid=1 request.

And according to XEP-0124 the client needs to order those before firing the listeners The client MUST process responses received from the connection manager in the order the requests were made..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions