2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-24 14:22:08 +00:00

Handle SSL library errors.

[SVN r48686]
This commit is contained in:
Christopher Kohlhoff
2008-09-09 13:02:22 +00:00
parent 557ca7cebf
commit a746a264d3

View File

@@ -159,6 +159,10 @@ public:
0;
int sys_error_code = ERR_get_error();
if (error_code == SSL_ERROR_SSL)
return handler_(boost::system::error_code(
error_code, boost::asio::error::get_ssl_category()), rc);
bool is_read_needed = (error_code == SSL_ERROR_WANT_READ);
bool is_write_needed = (error_code == SSL_ERROR_WANT_WRITE ||
::BIO_ctrl_pending( ssl_bio_ ));