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] websocket connection close in about 20-30s in Chrome #129

Open
qiaoshangyougeren opened this issue Sep 10, 2024 · 2 comments
Open

Comments

@qiaoshangyougeren
Copy link

OpenIM Server Version

3.5.2

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

在chrome浏览器中,web应用连上open-im-server以后,一旦把浏览器最小化或切换到其他tab,就会出现这个账号隔20-30秒就下线然后重连成功,不断重复。 如果页面一直在最前端显示,就不会反复断开重连。

open-im-server 里反复出现日志:
msgGateway [msggateway/client.go:131] readMessage {"remoteAddr": "3.2.165.1:45582", "platform": "Web", "connID": "60ca83f08dc6d3b9d383f3ead3c6f587", "operationID": "1725609324430469397", "opUserID": "10", "messageType": -1, "error": "read tcp 10.201.10.6:10001->3.2.165.1:45582: i/o timeout"}

Screenshots Link

No response

@Bloomingg
Copy link
Member

This is a problem with Chrome's mechanism. Inactive tabs may have their resources recycled.

@qiaoshangyougeren
Copy link
Author

qiaoshangyougeren commented Sep 10, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants