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

请教一个问题 #256

Open
wtyfpc opened this issue Dec 26, 2023 · 1 comment
Open

请教一个问题 #256

wtyfpc opened this issue Dec 26, 2023 · 1 comment

Comments

@wtyfpc
Copy link

wtyfpc commented Dec 26, 2023

https://github.com/qinguoyi/TinyWebServer/blob/master/webserver.cpp#L237C43-L237C43
请问这个循环是不是有点问题?它是怎样退出的呢?在m_LISTENTrigmode=2的情况下,即使是正常连接,也会打印出accept error日志

@Benxaomin
Copy link

我感觉这里的ET模式设计有问题,感觉作者把accept理解成recv了

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