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

SseEmitter 可能使用数据库链接,导致数据库连接池不释放 #958

Open
zjpzjp opened this issue Nov 3, 2023 · 1 comment

Comments

@zjpzjp
Copy link
Contributor

zjpzjp commented Nov 3, 2023

https://github.com/cskefu/cskefu/blob/fdfff6ab13c056d32be239c1aa17f5df63d3600d/contact-center/app/src/main/java/com/cskefu/cc/controller/apps/IMController.java#L479C7-L479C7

客户侧的 长轮询online接口 是通过sse实现的,会导致方法内使用到的mysql链接不释放(实际数据库已经sleep)
导致有几个online就会有多少数据库连接不释放,从而形成所有访问都卡死的情况

@hailiang-wang
Copy link
Member

这个反馈特别赞,@zjpzjp 可否提供 PR 解决该问题?

https://readthe.gitee.io/cskefu-docs/docs/osc/contribution

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