diff --git a/modules/client/profile.cc b/modules/client/profile.cc index 86b29b788..cfd52408e 100644 --- a/modules/client/profile.cc +++ b/modules/client/profile.cc @@ -232,6 +232,13 @@ get__profile_full(client &client, return {}; } +conf::item +remote_request_timeout +{ + { "name", "ircd.client.profile.remote_request.timeout" }, + { "default", 10L } +}; + resource::response get__profile_remote(client &client, const resource::request &request, @@ -259,8 +266,8 @@ try } }; - //TODO: conf - if(!federation_request.wait(seconds(8), std::nothrow)) + const seconds &timeout(remote_request_timeout); + if(!federation_request.wait(timeout, std::nothrow)) throw m::error { http::GATEWAY_TIMEOUT, "M_PROFILE_TIMEOUT",