Fix websocketpp based on https://github.com/LocutusOfBorg/websocketpp/commit/1dd07113...
authorweiyu <weiyuluo1232@gmail.com>
Mon, 9 Sep 2019 23:47:34 +0000 (16:47 -0700)
committerweiyu <weiyuluo1232@gmail.com>
Mon, 9 Sep 2019 23:47:34 +0000 (16:47 -0700)
gdax-orderbook-hpp/demo/dependencies/websocketpp-0.7.0/websocketpp/transport/asio/security/tls.hpp

index 7b32db81437208a615a58cd377aa3dd1db832839..ff9b44c9fa7a9f99e8c9b6eddb953536d395c631 100644 (file)
@@ -355,13 +355,9 @@ protected:
     template <typename ErrorCodeType>
     lib::error_code translate_ec(ErrorCodeType ec) {
         if (ec.category() == lib::asio::error::get_ssl_category()) {
-            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);
         } else {
             // We don't know any more information about this error so pass
             // through