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

内存不断变大 #29

Closed
danbao12138 opened this issue May 28, 2018 · 1 comment
Closed

内存不断变大 #29

danbao12138 opened this issue May 28, 2018 · 1 comment

Comments

@danbao12138
Copy link

danbao12138 commented May 28, 2018

我本地是MAC ,启动tinyhttpd后,用postman或者浏览器不断发送请求,用activity monitor观察内存不断变大,如果持续下去内存岂不是要爆掉,如何优化呢?

@danbao12138
Copy link
Author

danbao12138 commented May 30, 2018

问题同issue #14 是一样的,是线程资源没有回收造成的,主函数中设置新生成的线程为分离态,就可以收回线程资源了。pthread_detach(newthread);

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