-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
在HTTPServer::doHandleConnection()这个函数中,
我将
/if (!co_await co_await io.readRequestHeader()) {
break;
}/
替换为:
auto headerResult = co_await io.readRequestHeader();
if (headerResult.has_error() && headerResult.error() == std::errc::stream_timeout) {
co_await io.extractSocket().close();
break;
}
解决了超时连接不能释放的问题,希望小彭老师修改一下
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels