Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

挂机时间长后出现假死,无法接收到新消息的情况 #937

Open
BlackcatWatcher opened this issue Jun 26, 2021 · 6 comments
Open
Labels
bug? The issue author think this is a bug

Comments

@BlackcatWatcher
Copy link

环境信息

go-cqhttp版本: v1.0.0 - beta 4
运行环境: windows x64
连接方式: 正向ws
使用协议: ipad

bug内容

描述:挂机时间长了之后(1天以上),可能会出现无法接收消息的情况,具体表现为电脑QQ即使有新消息,但gocq端并不显示新消息,只会停留在旧消息的假死情况,因为没有触发重连所以会一直接收不到消息,只能手动重启。

复现方法

1、一台机挂了好几个gocq端。
2、均为挂机时长1天以上,但具体时长不等,有些能挂好几天。
3、偶尔会有一个端出现该情况,最后一条消息时间停留在之前,且没有重连,而后其他端也慢慢出现该情况。(没有进入编辑模式)
(挂机一个多月以来目前出现了十多次该情况)

@BlackcatWatcher BlackcatWatcher added the bug? The issue author think this is a bug label Jun 26, 2021
@DDZH-DEV
Copy link

我也出现挂一段时间出现反向ws不上报的问题,没有报错,无法追踪

@DDZH-DEV
Copy link

可以确定是网络问题,请等待修复。

是不是心跳包必须返回消息保持连接?发现这个问题比较常出现,基本一天内就会出现,可以确认是挂一段时间 cq端接收到QQ消息不上报ws,但是服务器下发消息,cq可以接收到

@RayXu14
Copy link

RayXu14 commented Jul 14, 2021

0.9.40也是一样的

@ishkong
Copy link
Contributor

ishkong commented Aug 9, 2021

刚刚观察到遇到了一次,不知道其它时候有没有发生

版本 0.9.40-fix5
运行环境 CentOS 7 x64
使用协议 IPAD
连接方式 正反WS

22:44:40到22:59:40期间,gocq没有任何网络错误提示,但是未收到任何群聊消息,且期间可以正常调用API get_group_list,无报错。
22:59:41提示网络中断,触发自动重连,恢复正常

@zanjie1999
Copy link

我是私聊能收到,群聊收不到,但是如果在那个群发送消息,又能收到一段时间

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? The issue author think this is a bug
Projects
None yet
Development

No branches or pull requests

6 participants
@DDZH-DEV @BlackcatWatcher @zanjie1999 @ishkong @RayXu14 and others