
Trying to make sync client with ssl stream show other flaw in error handling asio/ssl/detail/openssl_operation.hpp int sync_user_handler(const boost::asio::error& error, int rc) { if (!error) return rc; throw error; } throw errors even if used asio::assing_error forcing to use followng code boost::asio::error error_; try { _connection->socket().shutdown(boost::asio::assign_error(error_)); } catch (const boost::asio::error&) { } If anyone know some workaround or hotfixes pls let me know P.S. Thanks for great library

Hi Viktor, Viktor Kougitko <klug@apriorit.com> wrote:
Trying to make sync client with ssl stream show other flaw in error handling asio/ssl/detail/openssl_operation.hpp
Thanks for letting me know. For now, I have checked in a change to wrap these sync operations in try/catch and then invoke the supplied error_handler. This is far from ideal, but at least it now has the correct semantics. <http://boost.cvs.sourceforge.net/boost/boost/boost/asio/ssl/detail/openssl_context_service.hpp?r1=1.1&r2=1.2> <http://boost.cvs.sourceforge.net/boost/boost/boost/asio/ssl/detail/openssl_stream_service.hpp?r1=1.1&r2=1.2> Cheers, Chris
participants (2)
-
Christopher Kohlhoff
-
Viktor Kougitko