Skip to content

Commit

Permalink
slightly better default count of threads in WebServer/ConnectionManag…
Browse files Browse the repository at this point in the history
…er based on # maxConnections
  • Loading branch information
LewisPringle committed Mar 2, 2025
1 parent d8791a8 commit 0f49414
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ namespace {
using Options = ConnectionManager::Options;
constexpr unsigned int kMinThreadCnt_{1u}; // one enough now that we support separate thread doing epoll/select and one read when data avail
return Math::AtLeast (kMinThreadCnt_, options.fMaxConcurrentlyHandledConnections.value_or (
options.fMaxConnections.value_or (Options::kDefault_MaxConnections) / 10));
options.fMaxConnections.value_or (Options::kDefault_MaxConnections) / 5));
}
inline unsigned int ComputeConnectionBacklog_ (const ConnectionManager::Options& options)
{
Expand Down

0 comments on commit 0f49414

Please sign in to comment.