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

[BUG]WS Reverse重连有几率出现WS会话未清除导致重连失败 #81

Closed
yyuueexxiinngg opened this issue Aug 29, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@yyuueexxiinngg
Copy link
Owner

相关Issue: #74

15:05:13 [WARNING] [CQHTTPMirai] WS Reverse事件发送失败, 连接已被关闭, 尝试重连中 127.0.0.1:8080-Client-Universal
 15:05:13 [DEBUG] [CQHTTPMirai] 127.0.0.1:8080-Client-Universal 开始启动
 15:05:13 [WARNING] [CQHTTPMirai] Websocket session alredy exist, 127.0.0.1:8080-Client-Universal

复现

Websocket 反向客户端重连时概率出现

版本

cqhttp-mirai- 0..2.3

Commit: 8621e25

mirai-core-1.2.2

mirai-console- 0.5.2

@yyuueexxiinngg yyuueexxiinngg added the bug Something isn't working label Aug 29, 2020
@yimo0908
Copy link

我也复现了这个bug
版本信息: onebot-kotlin-0.3.2-all

2020-11-24 10:01:37 W/OneBot: WS Reverse事件发送失败, 连接已被关闭, 尝试重连中 xn--v9x.net:80-Client-Universal
2020-11-24 10:01:37 W/OneBot: Websocket session already exist, xn--v9x.net:80-Client-Universal

@LittleNightmare
Copy link

LittleNightmare commented Nov 24, 2020

随着时间的增加,概率会变成必然

但上个环境没有出现问题,,不保证环境准确无误

cqhttp-mirai-0.2.3-embedded-all
mirai-console-1.0-M3-all
mirai-core-qqandroid-1.2.2

这是错误初次发生后,有一个奇怪的日志

2020-11-24 23:00:19 W/OneBot: Websocket连接出错, 可能被服务器关闭, 将在3秒后重试连接, Host: xn--v9x.net:443-Client-Universal Path: /ws�[0m�[m
> 
�[K�[96m2020-11-24 23:00:22 D/OneBot: xn--v9x.net:443-Client-Universal Websocket Client启动完毕�[0m�[m
> 
�[K�[96m2020-11-24 23:00:22 D/OneBot: xn--v9x.net:443-Client-Universal 开始启动�[0m�[m
> 
�[K�[91m2020-11-24 23:00:24 W/OneBot: Websocket session alredy exist, xn--v9x.net:443-Client-Universal�[0m�[m
> 
�[K�[91m2020-11-24 23:00:29 W/OneBot: Websocket连接已断开, 将在3秒后重试连接, Host: xn--v9x.net:443-Client-Universal�[0m�[m

这里面的Websocket session alredy exist是在本次启动中初次发生,但在前两条,Websocket Client启动完毕开始启动在时间戳上是相同的

@yyuueexxiinngg
Copy link
Owner Author

刚Push了一个修复尝试, 请在Action中下载测试, 谢谢

@LittleNightmare
Copy link

LittleNightmare commented Nov 25, 2020

刚Push了一个修复尝试, 请在Action中下载测试, 谢谢

已经开始测试了,挂一会看看吧

目前9小时左右,问题没有再次出现,应该可以认为是修复了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants