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] 会无限创建MySQL连接 #80

Closed
h2y opened this issue Jun 5, 2020 · 3 comments
Closed

[bug] 会无限创建MySQL连接 #80

h2y opened this issue Jun 5, 2020 · 3 comments

Comments

@h2y
Copy link

h2y commented Jun 5, 2020

trojan-go 在mySQL鉴权模式下,会无限创建与数据库的连接,导致数据库过载,拒绝新的连接。但 trojan-go 本身似乎一直在使用之前创建的连接,所以工作正常。

QQ截图20200605111231

已确定是 trojan-go 的原因,因为重启 trojan-go 进程后数据库连接数立即恢复正常。
用的是 master 分支当前最新编译的版本。

@p4gefau1t
Copy link
Owner

收到,正在排查原因

@h2y
Copy link
Author

h2y commented Jun 5, 2020

hello, 我这里再多检查一下,好像是我修改了一处代码导致的这个问题。

@h2y
Copy link
Author

h2y commented Jun 5, 2020

(:з」∠)
找到问题所在了,是我添加了一个query调用,但是没有去处理其返回值导致的。
不好意思错误的提了个issue。

ps. 你的这个项目非常好用,给你点个赞 👍

@h2y h2y closed this as completed Jun 5, 2020
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