mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 14:24:31 +02:00
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:
@@ -1,6 +1,7 @@
|
|||||||
Version 197:
|
Version 197:
|
||||||
|
|
||||||
* Improvements to echo-op example
|
* Improvements to echo-op example
|
||||||
|
* Crawler example clears the response before each read
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -337,6 +337,7 @@ public:
|
|||||||
timer_.expires_after(chrono::seconds(timeout));
|
timer_.expires_after(chrono::seconds(timeout));
|
||||||
|
|
||||||
// Receive the HTTP response
|
// Receive the HTTP response
|
||||||
|
res_ = {};
|
||||||
http::async_read(
|
http::async_read(
|
||||||
socket_,
|
socket_,
|
||||||
buffer_,
|
buffer_,
|
||||||
|
Reference in New Issue
Block a user