Better logging in async echo server

This commit is contained in:
Vinnie Falco
2017-01-17 14:44:20 -05:00
parent 149e3a2c45
commit 420d1c7525
3 changed files with 84 additions and 43 deletions
+4 -1
View File
@@ -1416,7 +1416,10 @@ public:
yield_to_mf(ep, &stream_test::testAsyncClient);
}
{
async_echo_server server(true, any, 4);
error_code ec;
async_echo_server server{nullptr, 4};
server.open(true, any, ec);
BEAST_EXPECTS(! ec, ec.message());
auto const ep = server.local_endpoint();
testSyncClient(ep);
testAsyncWriteFrame(ep);