mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-01 07:35:02 +03:00
LibTLS: Notify the client for app data as soon as some data is available
Previously we were waiting until the socket was no longer immediately readable to notify the client, resulting in large buffers and longer latency.
This commit is contained in:
parent
b1297a267c
commit
c3167afa3a
Notes:
sideshowbarker
2024-07-17 23:02:37 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/c3167afa3a Pull-request: https://github.com/SerenityOS/serenity/pull/22551
@ -502,6 +502,8 @@ ssize_t TLSv12::handle_message(ReadonlyBytes buffer)
|
||||
payload_res = (i8)Error::DecryptionFailed;
|
||||
auto packet = build_alert(true, (u8)AlertDescription::DECRYPTION_FAILED_RESERVED);
|
||||
write_packet(packet);
|
||||
} else {
|
||||
notify_client_for_app_data();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user