I am using beast for implementation of HTTPS Client. In order to make the handshake I call async_handshake. But if I try to shutdown the stream via async_shutdown, I receive the following assert: boost::beast::detail::stream_base::pending_guard::pending_guard(bool&): Assertion `! b_' failed.
Is there a way to correctly shutdown the stream during the handshake?