Commit e2e293f8 authored by Kenton Varda's avatar Kenton Varda

Improve a TLS error message, sort of.

parent dedc8920
...@@ -284,8 +284,10 @@ private: ...@@ -284,8 +284,10 @@ private:
disconnected = true; disconnected = true;
return size_t(0); return size_t(0);
} else { } else {
KJ_FAIL_ASSERT( // According to documentation we shouldn't get here, because our BIO never returns an
"OpenSSL claims there was an I/O error but we shouldn't get here then..."); // "error". But in practice we do get here sometimes when the peer disconnects
// prematurely.
KJ_FAIL_ASSERT("TLS protocol error");
} }
default: default:
KJ_FAIL_ASSERT("unexpected SSL error code", error); KJ_FAIL_ASSERT("unexpected SSL error code", error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment