Skip to content

Commit 1dd0711

Browse files
Kurt RoeckxLocutusOfBorg
Kurt Roeckx
authored andcommitted
Fix issue zaphoyd#599
1 parent 378437a commit 1dd0711

File tree

1 file changed

+0
-4
lines changed
  • websocketpp/transport/asio/security

1 file changed

+0
-4
lines changed

websocketpp/transport/asio/security/tls.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,9 @@ class connection : public lib::enable_shared_from_this<connection> {
355355
template <typename ErrorCodeType>
356356
lib::error_code translate_ec(ErrorCodeType ec) {
357357
if (ec.category() == lib::asio::error::get_ssl_category()) {
358-
if (ERR_GET_REASON(ec.value()) == SSL_R_SHORT_READ) {
359-
return make_error_code(transport::error::tls_short_read);
360-
} else {
361358
// We know it is a TLS related error, but otherwise don't know
362359
// more. Pass through as TLS generic.
363360
return make_error_code(transport::error::tls_error);
364-
}
365361
} else {
366362
// We don't know any more information about this error so pass
367363
// through

0 commit comments

Comments
 (0)