开发者

Ejabberd Stanza Execution Order (Grouped together)

开发者 https://www.devze.com 2023-04-04 07:21 出处:网络
I am trying to find out the execution order of XMPP stanzas, I am using Strophe + Ejabberd and if I send a request like this.

I am trying to find out the execution order of XMPP stanzas, I am using Strophe + Ejabberd and if I send a request like this.

<body rid='someRID' xmlns='http://jabber.org/protocol/httpbind' sid='someSID'>
    <message to='someUser@someDoma开发者_高级运维in' type='chat' xmlns='jabber:client'>
           <body>123</body>
    </message>
    <presence type='unavailable' xmlns='jabber:client' />
</body>

Presence stanzas is always executed first and message stanza later. Is there a way to specify order or something like that so that Message stanza is executed first and Presence later.

Thanks


It's a bug in the server. RFC 6120, Section 10.1 says:

An XMPP server MUST ensure in-order processing of the stanzas and
other XML elements it receives over a given input stream from a
connected client or remote server.

0

精彩评论

暂无评论...
验证码 换一张
取 消