LibTLS: Remove excessive CloseNotify logging
This commit is contained in:
parent
a6e4482080
commit
f733b85957
Notes:
sideshowbarker
2024-07-18 20:34:36 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/f733b859570 Pull-request: https://github.com/SerenityOS/serenity/pull/6215
1 changed files with 4 additions and 4 deletions
|
@ -417,16 +417,16 @@ ssize_t TLSv12::handle_message(ReadonlyBytes buffer)
|
|||
|
||||
auto level = plain[0];
|
||||
auto code = plain[1];
|
||||
dbgln_if(TLS_DEBUG, "Alert received with level {}, code {}", level, code);
|
||||
|
||||
if (level == (u8)AlertLevel::Critical) {
|
||||
dbgln("We were alerted of a critical error: {} ({})", code, alert_name((AlertDescription)code));
|
||||
m_context.critical_error = code;
|
||||
try_disambiguate_error();
|
||||
res = (i8)Error::UnknownError;
|
||||
} else {
|
||||
dbgln("Alert: {}", code);
|
||||
}
|
||||
if (code == 0) {
|
||||
// close notify
|
||||
|
||||
if (code == (u8)AlertDescription::CloseNotify) {
|
||||
res += 2;
|
||||
alert(AlertLevel::Critical, AlertDescription::CloseNotify);
|
||||
m_context.connection_finished = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue