From c11682032bba2dd846afc6c7bd460a6cdbc767c4 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 6 Dec 2018 11:12:11 -0800 Subject: [PATCH] Crawler example clears the response before each read: fix #1100 Unfortunately the example still seems to hang, tested with 20 threads. --- CHANGELOG.md | 1 + example/http/client/crawl/http_crawl.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea138fa0..13f54b5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ Version 197: * Improvements to echo-op example +* Crawler example clears the response before each read -------------------------------------------------------------------------------- diff --git a/example/http/client/crawl/http_crawl.cpp b/example/http/client/crawl/http_crawl.cpp index 3be4e8f6..e67d915e 100644 --- a/example/http/client/crawl/http_crawl.cpp +++ b/example/http/client/crawl/http_crawl.cpp @@ -337,6 +337,7 @@ public: timer_.expires_after(chrono::seconds(timeout)); // Receive the HTTP response + res_ = {}; http::async_read( socket_, buffer_,