diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-09-18 03:48:22 +0430 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-09-19 21:10:23 +0430 |
commit | 65f7e45a75c44fd0af7af6b8373999358b2ca81c (patch) | |
tree | ada960a6cfce11ce97e1706945a027c5bccfd702 /Userland/Libraries/LibCore/NetworkJob.cpp | |
parent | c5d7eb86189e0fbd9f6a9da1afe29b6a9ab533a4 (diff) | |
download | serenity-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.cpp | 2 |
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>) { } |