Add test for issue 807

This commit is contained in:
Vinnie Falco
2017-10-05 19:23:43 -07:00
parent 0bc2a41404
commit 6e08fa0a21
2 changed files with 22 additions and 0 deletions

View File

@@ -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

View File

@@ -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();
} }
}; };