0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 00:14:07 +01:00

ircd::client: Add conf item for pool dispatch flags.

This commit is contained in:
Jason Volk 2023-02-21 10:40:00 -08:00
parent ff666cc75a
commit 61f12bb751
2 changed files with 9 additions and 1 deletions

View file

@ -124,6 +124,7 @@ struct ircd::client::settings
static item<size_t> stack_size;
static item<size_t> pool_size;
static item<size_t> pool_disp;
static item<size_t> max_client;
static item<size_t> max_client_per_peer;
};

View file

@ -46,6 +46,13 @@ ircd::client::settings::pool_size
}
};
ircd::conf::item<size_t>
ircd::client::settings::pool_disp
{
{ "name", "ircd.client.pool_disp" },
{ "default", long(ctx::dock::opts::LIFO) },
};
/// Linkage for the default settings
decltype(ircd::client::settings)
ircd::client::settings;
@ -90,7 +97,7 @@ ircd::client::pool_opts
{
.stack_size = size_t(settings.stack_size),
.initial_ctxs = size_t(settings.pool_size),
.dispatch = ctx::dock::opts::SORT,
.dispatch = ctx::dock::opts(size_t(settings.pool_disp)),
};
/// The pool of request contexts. When a client makes a request it does so by acquiring