qinguoyi / TinyWebServer

:fire: Linux下C++轻量级WebServer服务器
Apache License 2.0
15.8k stars 3.8k forks source link

请教一个问题 #256

Open wtyfpc opened 6 months ago

wtyfpc commented 6 months ago

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

Benxaomin commented 4 months ago

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