XMPP:BOSH client session getting closed randomly while connecting to openfire

老子叫甜甜 提交于 2019-12-12 01:21:40

问题


I get this message after sometime.

 org.jivesoftware.openfire.http.HttpSession - Request 3436024236568502 > 3436024236568501, ending session.

Basically I send around 1,00,000 messages/queue/hour each of 400 bytes. I see that only this session is terminated .

What does this message indicate and what s the possible solution?


回答1:


You run into the following constraint

else if (rid > (lastRequestID + maxRequests)) {
    Log.warn("Request " + rid + " > " + (lastRequestID + maxRequests) + ", ending session.");
        throw new HttpBindException("Unexpected RID error.",
                BoshBindingError.itemNotFound);
}

Source

Which means there are to many outstanding BOSH requests. Openfire defaults to 2. You could try to modify the Openfire settings xmpp.httpbind.client.requests.max, but I would not recommend doing so. Instead ensure that your BOSH client only sends new requests if there is no more then 1 outstanding one.



来源:https://stackoverflow.com/questions/30121988/xmppbosh-client-session-getting-closed-randomly-while-connecting-to-openfire

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!