0
0
Fork 0
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:
Jason Volk 2018-05-13 19:23:23 -07:00
parent 90ea0b4547
commit f79000b18d
2 changed files with 11 additions and 1 deletions

View file

@ -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
{

View file

@ -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,