From 17110a17d87a40c54186d0930c6efa51079aee0b Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Mon, 2 Oct 2023 10:28:37 -0500 Subject: [PATCH] GH-1662 Add comment --- tests/trx_generator/http_client_async.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/trx_generator/http_client_async.hpp b/tests/trx_generator/http_client_async.hpp index 15e525a0aa..7aad239e5c 100644 --- a/tests/trx_generator/http_client_async.hpp +++ b/tests/trx_generator/http_client_async.hpp @@ -73,8 +73,9 @@ class session : public std::enable_shared_from_this { req_.set(http::field::host, host); req_.set(http::field::user_agent, BOOST_BEAST_VERSION_STRING); req_.set(http::field::content_type, content_type); - req_.set(http::field::connection, "close"); req_.body() = std::move(request_body); + // current implementation does not reuse socket, disable keep_alive + req_.set(http::field::connection, "close"); req_.keep_alive(false); req_.prepare_payload();