- if (ERR_GET_REASON(ec.value()) == SSL_R_SHORT_READ) {
- return make_error_code(transport::error::tls_short_read);
- } else {
- // We know it is a TLS related error, but otherwise don't know
- // more. Pass through as TLS generic.
- return make_error_code(transport::error::tls_error);
- }
+ // We know it is a TLS related error, but otherwise don't know
+ // more. Pass through as TLS generic.
+ return make_error_code(transport::error::tls_error);