21 using namespace folly;
27 unsigned long errError,
28 int sslOperationReturnValue) {
29 if (sslError == SSL_ERROR_SYSCALL && errError == 0) {
30 if (sslOperationReturnValue == 0) {
31 return "Connection EOF";
34 return "Network error";
36 }
else if (sslError == SSL_ERROR_ZERO_RETURN) {
38 return "SSL connection closed normally";
40 std::array<char, 256> buf;
41 ERR_error_string_n(errError, buf.data(), buf.size());
51 ret =
"Client tried to renegotiate with server";
54 ret =
"Attempt to start renegotiation, but unsupported";
57 ret =
"Attempt to write before SSL connection established";
63 ret =
"Network error";
66 ret =
"SSL connection closed normally";
74 unsigned long errError,
75 int sslOperationReturnValue) {
76 if (sslErr == SSL_ERROR_ZERO_RETURN) {
78 }
else if (sslErr == SSL_ERROR_SYSCALL) {
79 if (errError == 0 && sslOperationReturnValue == 0) {
107 unsigned long errError,
108 int sslOperationReturnValue,
111 exTypefromSSLErrInfo(sslErr, errError, sslOperationReturnValue),
112 decodeOpenSSLError(sslErr, errError, sslOperationReturnValue),
113 sslErr == SSL_ERROR_SYSCALL ? errno_copy : 0) {
114 if (sslErr == SSL_ERROR_ZERO_RETURN) {
116 }
else if (sslErr == SSL_ERROR_SYSCALL) {
126 exTypefromSSLErr(error),
127 getSSLErrorString(error).str(),
SSLException(int sslError, unsigned long errError, int sslOperationReturnValue, int errno_copy)
—— Concurrent Priority Queue Implementation ——
requires And< SemiMovable< VN >... > &&SemiMovable< E > auto error(E e)