Add forwarding timeout option (#1462)

Fixes #1454.
This commit is contained in:
Sergey Kuznetsov
2024-06-14 16:53:08 +01:00
committed by GitHub
parent 437ea7bf98
commit 1334bd05d9
18 changed files with 319 additions and 53 deletions

View File

@@ -37,14 +37,16 @@
#include <boost/beast/http/string_body.hpp>
#include <boost/beast/websocket/error.hpp>
#include <boost/beast/websocket/rfc6455.hpp>
#include <boost/beast/websocket/stream.hpp>
#include <boost/beast/websocket/stream_base.hpp>
#include <gtest/gtest.h>
#include <algorithm>
#include <expected>
#include <iterator>
#include <functional>
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
@@ -59,6 +61,11 @@ TestWsConnection::TestWsConnection(
{
}
TestWsConnection::TestWsConnection(TestWsConnection&& other)
: ws_(std::move(other.ws_)), headers_(std::move(other.headers_))
{
}
std::optional<std::string>
TestWsConnection::send(std::string const& message, boost::asio::yield_context yield)
{