如何修复 boost::beast system_error uninitialized (SSL routines)
问题:
运行 boost::beast HTTPS 客户端时,你看到以下错误消息:
output.txt
terminate called after throwing an instance of 'boost::wrapexcept<boost::system::system_error>'
what(): uninitialized (SSL routines) [asio.ssl:167772436]解决方案
你忘记了在写入 HTTP 请求之前进行握手:
boostbeast_handshake.cpp
stream.handshake(ssl::stream_base::client);If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow