XMPP:BOSH客户端会话在连接到Openfire时随机关闭

问题描述:

一段时间后我收到此消息.

I get this message after sometime.

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

基本上,我每400字节发送大约1,00,000条消息/队列/小时.我看到只有该会话终止了.

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?

您遇到以下约束

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

来源

这意味着有许多未完成的BOSH请求. Openfire默认为2 .您可以尝试修改Openfire设置xmpp.httpbind.client.requests.max,但我不建议您这样做.相反,请确保您的BOSH客户端仅在不超过1个未完成的请求时发送新请求.

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.