summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-09-16 00:27:20 +0430
committerAndreas Kling <kling@serenityos.org>2021-09-15 22:29:47 +0200
commite5fde795e0f0f082c06b6777491b2515aed02ace (patch)
tree9b4f95910874cdbf84beb3e2a471198f03a35033
parent23febbed41d8296cf9e532a17145822cd099b591 (diff)
downloadserenity-e5fde795e0f0f082c06b6777491b2515aed02ace.zip
LibTLS: Increase the maximum socket read size to 4MiB
There's no reason to limit ourselves to 4KiB, this socket is not blocking anyway.
-rw-r--r--Userland/Libraries/LibTLS/Socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibTLS/Socket.cpp b/Userland/Libraries/LibTLS/Socket.cpp
index 0db37853e4..6b9062d3b9 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();