1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00

RequestServer: Bump the ConnectionCache concurrent connection limit to 4

With ECDHE, our TLS handshake performance has increased, so we can
afford to bump this limit to 4, and get some faster loads :^)
This commit is contained in:
Ali Mohammad Pur 2022-02-18 16:04:36 +03:30
parent cd4c11ebaf
commit ce057115fc

View file

@ -99,7 +99,7 @@ extern HashMap<ConnectionKey, NonnullOwnPtr<NonnullOwnPtrVector<Connection<TLS::
void request_did_finish(URL const&, Core::Stream::Socket const*); void request_did_finish(URL const&, Core::Stream::Socket const*);
void dump_jobs(); void dump_jobs();
constexpr static size_t MaxConcurrentConnectionsPerURL = 2; constexpr static size_t MaxConcurrentConnectionsPerURL = 4;
constexpr static size_t ConnectionKeepAliveTimeMilliseconds = 10'000; constexpr static size_t ConnectionKeepAliveTimeMilliseconds = 10'000;
template<typename T> template<typename T>