summaryrefslogtreecommitdiffstats
path: root/abs/extra/openpht/websocketSSL.patch
blob: cf9d89d254c6ba2ce247a8c8e2185ae3aa40d1df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 1dd07113f2a7489444a8990a95be42e035f8e9df Mon Sep 17 00:00:00 2001
From: Kurt Roeckx <kroeckx@debian.org>
Date: Tue, 1 Nov 2016 12:57:35 +0100
Subject: [PATCH] Fix issue #599

---
 websocketpp/transport/asio/security/tls.hpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/websocketpp/transport/asio/security/tls.hpp b/websocketpp/transport/asio/security/tls.hpp
index 7b32db81..a8aafec5 100644
--- a/lib/websocketpp/transport/asio/security/tls.hpp
+++ b/lib/websocketpp/transport/asio/security/tls.hpp
@@ -355,13 +355,9 @@ class connection : public lib::enable_shared_from_this<connection> {
     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);
-            }
         } else {
             // We don't know any more information about this error so pass
             // through