ser:增加空闲时休眠时间。

This commit is contained in:
taynpg 2024-12-16 12:19:08 +08:00
parent 500ad6893c
commit a2df59cc07

View File

@ -97,7 +97,7 @@ void CTcpServer::handle_frame()
}
}
if (!buf) {
std::this_thread::sleep_for(std::chrono::milliseconds(1));
std::this_thread::sleep_for(std::chrono::milliseconds(100));
continue;
}