0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-26 18:38:52 +02:00

ircd:Ⓜ️:fed: Add conf item for well-known fetch timeout.

This commit is contained in:
Jason Volk 2020-03-11 18:47:17 -07:00
parent 164b881442
commit dcfa6c9d48

View file

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