Better logging in async echo server

This commit is contained in:
Vinnie Falco
2017-07-20 08:12:14 -07:00
parent cfde28c3c3
commit 020a254b1b
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);