Re: [boost] [asio] SSL operation sporadically returns "Access is denied"

Hi Chris,
My mistake -- I should have checked the man pages first. Try changing this line:
int sys_error_code = asio::detail::socket_ops::get_error();
to be:
int sys_error_code = (int)ERR_get_error();
I forgot to mention that a #include <openssl/err.h> line is probably also needed.
I wish I had better news to report, but it's still zero. I tried putting ERR_get_error() after: int rc = primitive_( session_ ); But it is always zero there. I then moved it to after the if test: if (!is_operation_done && !is_read_needed && !is_write_needed && !is_shut_down_sent) { int sys_error_code = (int)ERR_get_error(); // still zero In both places it always returns zero. I hate that I can't be of more help to you in debugging this. :( Scott
participants (1)
-
Scott