Hi Vinnie,

I think you mean to change the code to "::ssl::stream<". And yes, that is working OK, theĀ on_handshake function is called without any problems. There is no crash.

Regards
A

On Tue, Feb 8, 2022 at 4:48 PM Vinnie Falco <vinnie.falco@gmail.com> wrote:
On Tue, Feb 8, 2022 at 7:37 AM Ales Mulej <alesm2015@gmail.com> wrote:
> only one. I reduced this number to one until this problem is not solved.

If you temporarily replace

> boost::beast::websocket::stream<boost::beast::ssl_stream<boost::beast::tcp_stream>>

with

> boost::asio::ssl_stream<boost::asio::ip::tcp::socket>

and adjust the surrounding code for the change, what happens?

Thanks