Crawler example clears the response before each read:

fix #1100

Unfortunately the example still seems to hang, tested
with 20 threads.
This commit is contained in:
Vinnie Falco committed 2018-12-06 15:50:24 -08:00
1 parent 88eef1e9e3
commit c11682032b
2 files changed
+2

No files matched your search

+1
View File
@@ -337,6 +337,7 @@ public:
timer_.expires_after(chrono::seconds(timeout));
// Receive the HTTP response
res_ = {};
http::async_read(
socket_,
buffer_,