[ejabberd] order of packets in http-bind module

Pablo Platt pablo.platt at yahoo.com
Mon Aug 18 21:21:19 MSD 2008


When ejabberd is busy and a client sends packets fast they might arrive in the wrong order.
When using BOSH, usually only two packets can be sent by the client simultaneously.

According to the BOSH specs, the server should allow out of order packets and should respond in the rid order.

I've performed a simple test and sent message with rid:
rid = 100
rid = 102
rid = 101

Ejabberd immediately ended the session when it received the rid=101 packet and the error in the log is:
=ERROR REPORT==== 2008-08-18 13:04:15 ===
** State machine <0.14284.0> terminating 
** Last message in was {'$gen_sync_all_state_event',
** When State == loop
**      Data  == {state,"f9c3b1a43c4a450ea1b7fd82c159f924cc53ff88",111,[],[],
** Reason for termination = 
** {{badmatch,[]},

Ejabberd should delay the processing of rid=102 until it receive the rid=101 packet.

Should I submit a bug report on this?

>From the specs:
When a client makes simultaneous requests, the connection manager might receive them out of order. The connection manager MUST forward the stanzas to the server and respond to the client requests in the order specified by the 'rid' attributes. The client MUST process responses received from the connection manager in the order the requests were made.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20080818/6bf0d72a/attachment-0001.htm>

More information about the ejabberd mailing list