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

随着用户的增加会出现内存越来越大的情况 #114

Open
481zch opened this issue Sep 28, 2024 · 0 comments
Open

随着用户的增加会出现内存越来越大的情况 #114

481zch opened this issue Sep 28, 2024 · 0 comments

Comments

@481zch
Copy link

481zch commented Sep 28, 2024

问题出现在用户的初始化连接上,使用哈希表隐式的创建一个对象,但是没有在用户结束连接的时候释放,对象的生命周期由哈希表进行管理。

users_[fd].init(fd, addr);
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

1 participant