make it so lookups dont time out

pull/1669/head
Jeff Becker 3 years ago
parent b5efb8c604
commit 3393b5a5a7
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -1465,7 +1465,7 @@ namespace llarp
path->Endpoint(), path->Endpoint(),
order, order,
GenTXID(), GenTXID(),
timeout + (2 * path->intro.latency)); timeout + (2 * path->intro.latency) + IntrosetLookupGraceInterval);
LogInfo( LogInfo(
"doing lookup for ", "doing lookup for ",
remote, remote,

@ -8,6 +8,9 @@ namespace llarp
{ {
namespace service namespace service
{ {
/// interval for which we will add to lookup timeout interval
constexpr auto IntrosetLookupGraceInterval = 20s;
struct Endpoint; struct Endpoint;
struct HiddenServiceAddressLookup : public IServiceLookup struct HiddenServiceAddressLookup : public IServiceLookup
{ {

@ -289,7 +289,7 @@ namespace llarp
path->Endpoint(), path->Endpoint(),
relayOrder, relayOrder,
m_Endpoint->GenTXID(), m_Endpoint->GenTXID(),
(IntrosetUpdateInterval / 2) + (2 * path->intro.latency)); (IntrosetUpdateInterval / 2) + (2 * path->intro.latency) + IntrosetLookupGraceInterval);
relayOrder++; relayOrder++;
if (job->SendRequestViaPath(path, m_Endpoint->Router())) if (job->SendRequestViaPath(path, m_Endpoint->Router()))
updatingIntroSet = true; updatingIntroSet = true;

Loading…
Cancel
Save