mirror of
https://github.com/boostorg/beast.git
synced 2025-08-01 22:04:34 +02:00
Add test for issue 807
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
Version 122:
|
||||||
|
|
||||||
|
* Add test for issue 807
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Version 121:
|
Version 121:
|
||||||
|
|
||||||
* Add test for issue 802
|
* Add test for issue 802
|
||||||
|
@@ -1029,6 +1029,21 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
testIssue807()
|
||||||
|
{
|
||||||
|
echo_server es{log};
|
||||||
|
boost::asio::io_service ios;
|
||||||
|
stream<test::stream> ws{ios};
|
||||||
|
ws.next_layer().connect(es.stream());
|
||||||
|
ws.handshake("localhost", "/");
|
||||||
|
ws.write(sbuf("Hello, world!"));
|
||||||
|
char buf[4];
|
||||||
|
boost::asio::mutable_buffers_1 cb{buf, 0};
|
||||||
|
auto const n = ws.read_some(cb);
|
||||||
|
BEAST_EXPECT(n == 0);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
run() override
|
run() override
|
||||||
{
|
{
|
||||||
@@ -1037,6 +1052,7 @@ public:
|
|||||||
testParseFrame();
|
testParseFrame();
|
||||||
testContHook();
|
testContHook();
|
||||||
testIssue802();
|
testIssue802();
|
||||||
|
testIssue807();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user