Skip to content

Commit

Permalink
GH-1662 Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Oct 2, 2023
1 parent 25bb157 commit 17110a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/trx_generator/http_client_async.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ class session : public std::enable_shared_from_this<session> {
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();

Expand Down

0 comments on commit 17110a1

Please sign in to comment.