summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/NetworkJob.cpp
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-09-18 03:48:22 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-09-19 21:10:23 +0430
commit65f7e45a75c44fd0af7af6b8373999358b2ca81c (patch)
treeada960a6cfce11ce97e1706945a027c5bccfd702 /Userland/Libraries/LibCore/NetworkJob.cpp
parentc5d7eb86189e0fbd9f6a9da1afe29b6a9ab533a4 (diff)
downloadserenity-65f7e45a75c44fd0af7af6b8373999358b2ca81c.zip
RequestServer+LibHTTP+LibGemini: Cache connections to the same host
This makes connections (particularly TLS-based ones) do the handshaking stuff only once. Currently the cache is configured to keep at most two connections evenly balanced in queue size, and with a grace period of 10s after the last queued job has finished (after which the connection will be dropped).
Diffstat (limited to 'Userland/Libraries/LibCore/NetworkJob.cpp')
-rw-r--r--Userland/Libraries/LibCore/NetworkJob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCore/NetworkJob.cpp b/Userland/Libraries/LibCore/NetworkJob.cpp
index f393cc93af..dd8b15ed00 100644
--- a/Userland/Libraries/LibCore/NetworkJob.cpp
+++ b/Userland/Libraries/LibCore/NetworkJob.cpp
@@ -19,7 +19,7 @@ NetworkJob::~NetworkJob()
{
}
-void NetworkJob::start()
+void NetworkJob::start(NonnullRefPtr<Core::Socket>)
{
}