打开 webim ( Mibew Messenger ) 超时,重新连接

发布于 2024-08-11 03:35:50 字数 325 浏览 2 评论 0原文

我希望你们了解 webim 又名 mibew 信使。我只知道java,jsp,除了一些基础知识之外,对php一无所知。不管怎样,我在我的 apache2.2 本地服务器上运行了这个应用程序。一切都很棒!但是,如果我将数据库更改为虚拟机并在 config.php 中给出其地址(之前我使用的是 localhost),则在访问者页面中,我会超时,重新连接。登录没有问题,所以我的猜测是数据库连接正常。我什至将默认页面刷新时间从 2 更改为 10。什么也没有发生。还是一样的事情。你们有什么想法吗?

i hope you guys know about webim a.k.a mibew messenger. I know only java, jsp and no idea about php except for some basics. Anyways, i ran this app in my apache2.2 local server. Everything works superb! But if i change my db to a virtual machine and give its address in the config.php (previously i had used localhost), in the visitors page, i get timeout, reconnecting. Login has no prob, so my guess is db connection is fine. I even changed the default page refresh time from 2 to 10. Nothing happens. Still same thing. You guys have any idea?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烂人 2024-08-18 03:35:50

在 users.php 中,如果聊天会话数量过多,导致 javascript 检索和更新页面所需的时间过长,您可能会收到“超时,重新连接”消息。

select istate,count(*) from chatthread group by istate;

查看状态 = 2 的聊天线程数。

如果它很大(我的超过 1000),那么您可以更新聊天线程表。

更新聊天线程设置 istate=3,其中 istate=2 且 dtmcreated <日期(now()-间隔1天);

上面的查询更新了比昨天更旧的线程,消费者只是关闭了窗口并离开了。

为什么会发生这种情况?就我而言,这是因为客户服务部门已经超过一周没有登录 midew,并且 users.php/javascript 需要检索和显示的消息线程太多。

In users.php, you may get "time out, reconnecting" if the number of in chat sessions is so great that it takes too long for the javascript to retrieve and update the page.

select istate,count(*) from chatthread group by istate;

Look at the number of chat threads with a status = 2.

If it's big (mine was over 1000), then you can update the chatthread table.

update chatthread set istate=3 where istate=2 and dtmcreated < date(now()-interval 1 day) ;

Above query updates threads older than yesterday where the consumer simply closed their window and went away.

Why does this happen? In my case, it's because customer service department did not log into midew for over a week and there were too many messages threads for the users.php/javascript to retrieve and display.

空城旧梦 2024-08-18 03:35:50

将地址栏中的 users.php 替换为 update.php。加载它。应该有有效的 xml 代码。你会看到是否有任何错误。

Replace users.php with update.php in the address bar. Load it. There should be valid xml code. You'll see if there are any errors.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文