rework client using async api

This commit is contained in:
Chunting Gu
2021-04-16 19:07:31 +08:00
parent 7f345b7a4e
commit f5210ba1a2
27 changed files with 855 additions and 522 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ int main(int argc, const char* argv[]) {
threads.emplace_back([&url]() {
// NOTE: Each thread has its own client session.
webcc::ClientSession session;
session.set_timeout(180);
session.set_read_timeout(180);
try {
LOG_USER("Start");