Adjust rpc timeouts

This commit is contained in:
Lee Clagett
2025-12-08 17:50:50 -05:00
parent 364107f4a6
commit d476d95064
3 changed files with 9 additions and 3 deletions
+6
View File
@@ -98,6 +98,12 @@ namespace lwsf { namespace internal { namespace rpc
{"Content-Type", "application/json; charset=utf-8"}
};
if (!client.is_connected())
{
if (client.connect(config::connect_timeout))
return {error::no_response};
}
const epee::net_utils::http::http_response_info* response = nullptr;
if (!client.invoke(endpoint, "POST", {reinterpret_cast<const char*>(payload.data()), payload.size()}, config::rpc_timeout, std::addressof(response), headers))
return {error::no_response};