mirror of
https://github.com/matrix-construct/construct
synced 2025-01-01 18:34:18 +01:00
ircd:Ⓜ️:fed: Add conf item for well-known fetch timeout.
This commit is contained in:
parent
164b881442
commit
dcfa6c9d48
1 changed files with 8 additions and 1 deletions
|
@ -1485,6 +1485,13 @@ well_known_cache_max
|
|||
{ "default", 48 * 60 * 60L },
|
||||
};
|
||||
|
||||
ircd::conf::item<ircd::seconds>
|
||||
well_known_fetch_timeout
|
||||
{
|
||||
{ "name", "ircd.m.fed.well-known.fetch.timeout" },
|
||||
{ "default", 8L },
|
||||
};
|
||||
|
||||
ircd::string_view
|
||||
ircd::m::fed::well_known(const mutable_buffer &buf,
|
||||
const string_view &origin)
|
||||
|
@ -1675,7 +1682,7 @@ try
|
|||
|
||||
const auto code
|
||||
{
|
||||
request.get(seconds(8)) //TODO: XXX conf
|
||||
request.get(seconds(well_known_fetch_timeout))
|
||||
};
|
||||
|
||||
const json::object &response
|
||||
|
|
Loading…
Reference in a new issue