mirror of
https://github.com/matrix-construct/construct
synced 2024-10-03 06:08:52 +02:00
modules/client/sync: Add flush high-watermark conf item.
This commit is contained in:
parent
90ea0b4547
commit
f79000b18d
2 changed files with 11 additions and 1 deletions
|
@ -89,6 +89,13 @@ sync_timeout_default
|
||||||
{ "default", 10 * 1000L },
|
{ "default", 10 * 1000L },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
conf::item<size_t>
|
||||||
|
sync_flush_hiwat
|
||||||
|
{
|
||||||
|
{ "name", "ircd.client.sync.flush.hiwat" },
|
||||||
|
{ "default", long(24_KiB) },
|
||||||
|
};
|
||||||
|
|
||||||
syncargs::syncargs(const resource::request &request)
|
syncargs::syncargs(const resource::request &request)
|
||||||
:filter_id
|
:filter_id
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
using namespace ircd;
|
using namespace ircd;
|
||||||
|
|
||||||
|
extern conf::item<size_t> sync_flush_hiwat;
|
||||||
|
|
||||||
/// Argument parser for the client's /sync request
|
/// Argument parser for the client's /sync request
|
||||||
struct syncargs
|
struct syncargs
|
||||||
{
|
{
|
||||||
|
@ -85,7 +87,8 @@ struct shortpoll
|
||||||
|
|
||||||
response->write(buf);
|
response->write(buf);
|
||||||
return buf;
|
return buf;
|
||||||
}
|
},
|
||||||
|
size_t(sync_flush_hiwat)
|
||||||
};
|
};
|
||||||
|
|
||||||
shortpoll(ircd::client &client,
|
shortpoll(ircd::client &client,
|
||||||
|
|
Loading…
Reference in a new issue