diff --git a/ssl/test/bssl_shim.cc b/ssl/test/bssl_shim.cc index 4e9956ad22..28010b8786 100644 --- a/ssl/test/bssl_shim.cc +++ b/ssl/test/bssl_shim.cc @@ -31,6 +31,7 @@ OPENSSL_MSVC_PRAGMA(warning(pop)) #endif #include +#include #ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS @@ -986,6 +987,11 @@ static bool DoConnection(bssl::UniquePtr *out_session, int ssl_err = SSL_get_error(ssl.get(), -1); if (ssl_err != SSL_ERROR_NONE) { fprintf(stderr, "SSL error: %s\n", SSL_error_description(ssl_err)); + if (ssl_err == SSL_ERROR_SYSCALL) { + int err = errno; + fprintf(stderr, "Error occurred: errno = %d, description = %s\n", err, strerror(err)); + + } } return false; }