XMPP:BOSH客户端会话在连接到Openfire时随机关闭 [英] XMPP:BOSH client session getting closed randomly while connecting to openfire

查看:224
本文介绍了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.

这篇关于XMPP:BOSH客户端会话在连接到Openfire时随机关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆