From e5fde795e0f0f082c06b6777491b2515aed02ace Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Thu, 16 Sep 2021 00:27:20 +0430 Subject: [PATCH] LibTLS: Increase the maximum socket read size to 4MiB There's no reason to limit ourselves to 4KiB, this socket is not blocking anyway. --- Userland/Libraries/LibTLS/Socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibTLS/Socket.cpp b/Userland/Libraries/LibTLS/Socket.cpp index 0db37853e49..6b9062d3b9f 100644 --- a/Userland/Libraries/LibTLS/Socket.cpp +++ b/Userland/Libraries/LibTLS/Socket.cpp @@ -164,7 +164,7 @@ void TLSv12::read_from_socket() if (!check_connection_state(true)) return; - consume(Core::Socket::read(4096)); + consume(Core::Socket::read(4 * MiB)); // If anything new shows up, tell the client about the event. notify_client_for_app_data();