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

httpserver的长连接有bug #30

Open
baichuan51141 opened this issue Nov 29, 2022 · 0 comments
Open

httpserver的长连接有bug #30

baichuan51141 opened this issue Nov 29, 2022 · 0 comments

Comments

@baichuan51141
Copy link

httpserver的handleclient函数在处理长连接时会不停循环,我在压力测试时,服务器开启后首次测试时,长连接不会出现问题,但是在不关闭服务器的情况下,第二次压力测试时,服务器仅能处理第一个长连接,它会在第一个长连接那里不停循环,我在判断长连接语句后边重新把handleclient函数放入调度器里,解决了这个问题,不知道为什么第一次压力测试时可以正常处理长连接,后边就不行了

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