• Guus der Kinderen's avatar
    OF-793: Improve exception message · 79227386
    Guus der Kinderen authored
    When a peer sends a non-encrypted data where we expected encrypted,
    a confusing exception is logged. This commit wraps that exception,
    giving a clear explanation.
    
    This typically occurs during a failed TLS handshake, where the peers
    should be closing the connection without sending data, but does not
    so (typically, the exceptions that are logged indicate that
    </failure or </stream is received in plain text).
    79227386
TLSWrapper.java 9.36 KB