mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01: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 },
|
||||
};
|
||||
|
||||
conf::item<size_t>
|
||||
sync_flush_hiwat
|
||||
{
|
||||
{ "name", "ircd.client.sync.flush.hiwat" },
|
||||
{ "default", long(24_KiB) },
|
||||
};
|
||||
|
||||
syncargs::syncargs(const resource::request &request)
|
||||
:filter_id
|
||||
{
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
using namespace ircd;
|
||||
|
||||
extern conf::item<size_t> sync_flush_hiwat;
|
||||
|
||||
/// Argument parser for the client's /sync request
|
||||
struct syncargs
|
||||
{
|
||||
|
@ -85,7 +87,8 @@ struct shortpoll
|
|||
|
||||
response->write(buf);
|
||||
return buf;
|
||||
}
|
||||
},
|
||||
size_t(sync_flush_hiwat)
|
||||
};
|
||||
|
||||
shortpoll(ircd::client &client,
|
||||
|
|
Loading…
Reference in a new issue