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
2018-12-06 11:12:11 -08:00
parent 88eef1e9e3
commit c11682032b
2 changed files with 2 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
Version 197:
* Improvements to echo-op example
* Crawler example clears the response before each read
--------------------------------------------------------------------------------

View File

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