asio's ssl_stream simulates io_context::post using a zero-length read, this can trigger a pending_guard assertion.
https://github.com/chriskohlhoff/asio/blob/asio-1-38-0/include/asio/ssl/detail/io.hpp#L230-L242
I think it would be logical to use boost::asio::post in this code, or document a reason why a zero-length read is preferred.
asio's
ssl_streamsimulatesio_context::postusing a zero-length read, this can trigger apending_guardassertion.https://github.com/chriskohlhoff/asio/blob/asio-1-38-0/include/asio/ssl/detail/io.hpp#L230-L242
I think it would be logical to use
boost::asio::postin this code, or document a reason why a zero-length read is preferred.