blob: 9d521eda2e27ca8a18b14cba14a9b135d6b57396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- a/src/cpp/core/http/SocketProxy.cpp.orig 2017-04-28 09:07:11.342017929 +0800
+++ b/src/cpp/core/http/SocketProxy.cpp 2017-04-28 09:12:35.662573281 +0800
@@ -148,8 +148,9 @@
#ifndef _WIN32
bool isSslShutdownError(const core::Error& error)
{
- return error.code().category() == boost::asio::error::get_ssl_category() &&
- error.code().value() == ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ);
+ //return error.code().category() == boost::asio::error::get_ssl_category() &&
+ // error.code().value() == ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ);
+ return error.code() == boost::asio::ssl::error::stream_truncated;
}
#else
bool isSslShutdownError(const core::Error& error)
|