forked from boostorg/mqtt5
Gracefully shutdown Websocket and TLS streams
Summary: Resolves #18 Ref T15241 Reviewers: ivica Reviewed By: ivica Subscribers: korina, miljen Maniphest Tasks: T15241 Differential Revision: https://repo.mireo.local/D33395
This commit is contained in:
@@ -84,6 +84,11 @@ struct test_tcp_stream : public test::test_stream {
|
||||
}
|
||||
};
|
||||
|
||||
template <typename ShutdownHandler>
|
||||
void async_shutdown(test_tcp_stream&, ShutdownHandler&& handler) {
|
||||
return std::move(handler)(error_code {});
|
||||
}
|
||||
|
||||
using underlying_stream = test_tcp_stream;
|
||||
using stream_context = detail::stream_context<underlying_stream, std::monostate>;
|
||||
using astream = test::test_autoconnect_stream<underlying_stream, stream_context>;
|
||||
|
||||
Reference in New Issue
Block a user