forked from boostorg/beast
@@ -2,6 +2,7 @@ Version 179:
|
|||||||
|
|
||||||
* Use the exchange() idiom in move constructors
|
* Use the exchange() idiom in move constructors
|
||||||
* Most members of std::allocate are deprecated in C++17
|
* Most members of std::allocate are deprecated in C++17
|
||||||
|
* Remove some unused variables
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -757,7 +757,6 @@ public:
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
auto m = m0;
|
auto m = m0;
|
||||||
error_code ec;
|
|
||||||
response_serializer<Body, fields> sr{m};
|
response_serializer<Body, fields> sr{m};
|
||||||
sr.split(true);
|
sr.split(true);
|
||||||
for(;;)
|
for(;;)
|
||||||
@@ -771,7 +770,6 @@ public:
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
auto m = m0;
|
auto m = m0;
|
||||||
error_code ec;
|
|
||||||
response_serializer<Body, fields> sr{m};
|
response_serializer<Body, fields> sr{m};
|
||||||
sr.split(true);
|
sr.split(true);
|
||||||
for(;;)
|
for(;;)
|
||||||
@@ -804,7 +802,6 @@ public:
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
auto m = m0;
|
auto m = m0;
|
||||||
error_code ec;
|
|
||||||
response_serializer<Body, fields> sr{m};
|
response_serializer<Body, fields> sr{m};
|
||||||
sr.split(true);
|
sr.split(true);
|
||||||
for(;;)
|
for(;;)
|
||||||
@@ -818,7 +815,6 @@ public:
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
auto m = m0;
|
auto m = m0;
|
||||||
error_code ec;
|
|
||||||
response_serializer<Body, fields> sr{m};
|
response_serializer<Body, fields> sr{m};
|
||||||
sr.split(true);
|
sr.split(true);
|
||||||
for(;;)
|
for(;;)
|
||||||
@@ -895,7 +891,7 @@ public:
|
|||||||
struct const_body_writer
|
struct const_body_writer
|
||||||
{
|
{
|
||||||
struct value_type{};
|
struct value_type{};
|
||||||
|
|
||||||
struct writer
|
struct writer
|
||||||
{
|
{
|
||||||
using const_buffers_type =
|
using const_buffers_type =
|
||||||
@@ -926,7 +922,7 @@ public:
|
|||||||
struct mutable_body_writer
|
struct mutable_body_writer
|
||||||
{
|
{
|
||||||
struct value_type{};
|
struct value_type{};
|
||||||
|
|
||||||
struct writer
|
struct writer
|
||||||
{
|
{
|
||||||
using const_buffers_type =
|
using const_buffers_type =
|
||||||
|
@@ -394,7 +394,6 @@ public:
|
|||||||
w.handshake(ws, "localhost", "/");
|
w.handshake(ws, "localhost", "/");
|
||||||
ws.next_layer().append(s);
|
ws.next_layer().append(s);
|
||||||
static_buffer<1> b;
|
static_buffer<1> b;
|
||||||
error_code ec;
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
w.read(ws, b);
|
w.read(ws, b);
|
||||||
|
@@ -237,7 +237,7 @@ public:
|
|||||||
ws.read(b, ec);
|
ws.read(b, ec);
|
||||||
BEAST_EXPECT(ec);
|
BEAST_EXPECT(ec);
|
||||||
};
|
};
|
||||||
|
|
||||||
// chopped frame header
|
// chopped frame header
|
||||||
{
|
{
|
||||||
echo_server es{log};
|
echo_server es{log};
|
||||||
@@ -249,7 +249,6 @@ public:
|
|||||||
"\x81\x7e\x01");
|
"\x81\x7e\x01");
|
||||||
std::size_t count = 0;
|
std::size_t count = 0;
|
||||||
std::string const s(257, '*');
|
std::string const s(257, '*');
|
||||||
error_code ec;
|
|
||||||
multi_buffer b;
|
multi_buffer b;
|
||||||
ws.async_read(b,
|
ws.async_read(b,
|
||||||
[&](error_code ec, std::size_t)
|
[&](error_code ec, std::size_t)
|
||||||
@@ -324,7 +323,6 @@ public:
|
|||||||
ws.next_layer().append(
|
ws.next_layer().append(
|
||||||
"\x89\x02*");
|
"\x89\x02*");
|
||||||
std::size_t count = 0;
|
std::size_t count = 0;
|
||||||
error_code ec;
|
|
||||||
multi_buffer b;
|
multi_buffer b;
|
||||||
ws.async_read(b,
|
ws.async_read(b,
|
||||||
[&](error_code ec, std::size_t)
|
[&](error_code ec, std::size_t)
|
||||||
@@ -354,7 +352,7 @@ public:
|
|||||||
{
|
{
|
||||||
void operator()(error_code, std::size_t) {}
|
void operator()(error_code, std::size_t) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
char buf[32];
|
char buf[32];
|
||||||
stream<test::stream> ws{ioc_};
|
stream<test::stream> ws{ioc_};
|
||||||
stream<test::stream>::read_some_op<
|
stream<test::stream>::read_some_op<
|
||||||
@@ -371,7 +369,7 @@ public:
|
|||||||
{
|
{
|
||||||
void operator()(error_code, std::size_t) {}
|
void operator()(error_code, std::size_t) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
multi_buffer b;
|
multi_buffer b;
|
||||||
stream<test::stream> ws{ioc_};
|
stream<test::stream> ws{ioc_};
|
||||||
stream<test::stream>::read_op<
|
stream<test::stream>::read_op<
|
||||||
|
@@ -452,7 +452,6 @@ public:
|
|||||||
doFailLoop([&](test::fail_count& fc)
|
doFailLoop([&](test::fail_count& fc)
|
||||||
{
|
{
|
||||||
echo_server es{log};
|
echo_server es{log};
|
||||||
error_code ec;
|
|
||||||
boost::asio::io_context ioc;
|
boost::asio::io_context ioc;
|
||||||
stream<test::stream> ws{ioc, fc};
|
stream<test::stream> ws{ioc, fc};
|
||||||
ws.next_layer().connect(es.stream());
|
ws.next_layer().connect(es.stream());
|
||||||
@@ -485,7 +484,6 @@ public:
|
|||||||
doFailLoop([&](test::fail_count& fc)
|
doFailLoop([&](test::fail_count& fc)
|
||||||
{
|
{
|
||||||
echo_server es{log};
|
echo_server es{log};
|
||||||
error_code ec;
|
|
||||||
boost::asio::io_context ioc;
|
boost::asio::io_context ioc;
|
||||||
stream<test::stream> ws{ioc, fc};
|
stream<test::stream> ws{ioc, fc};
|
||||||
ws.next_layer().connect(es.stream());
|
ws.next_layer().connect(es.stream());
|
||||||
@@ -622,7 +620,7 @@ public:
|
|||||||
{
|
{
|
||||||
void operator()(error_code) {}
|
void operator()(error_code) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
char buf[32];
|
char buf[32];
|
||||||
stream<test::stream> ws{ioc_};
|
stream<test::stream> ws{ioc_};
|
||||||
stream<test::stream>::write_some_op<
|
stream<test::stream>::write_some_op<
|
||||||
|
Reference in New Issue
Block a user