From 0c87b12458bdba26dc8d7c305ca733e385e3cdf8 Mon Sep 17 00:00:00 2001 From: awlane Date: Fri, 17 Jun 2022 15:53:10 -0500 Subject: [PATCH] lsdb: Fix for issues involving incorrect retransmission behavior Change-Id: I912ca04ccc8303f0c621cd5065553193d09bd26f --- src/lsdb.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lsdb.cpp b/src/lsdb.cpp index 6fd4266..490c540 100644 --- a/src/lsdb.cpp +++ b/src/lsdb.cpp @@ -420,6 +420,7 @@ Lsdb::expressInterest(const ndn::Name& interestName, uint32_t timeoutCount, uint } ndn::util::SegmentFetcher::Options options; options.interestLifetime = m_confParam.getLsaInterestLifetime(); + options.maxTimeout = m_confParam.getLsaInterestLifetime(); NLSR_LOG_DEBUG("Fetching Data for LSA: " << interestName << " Seq number: " << seqNo); auto fetcher = ndn::util::SegmentFetcher::start(m_face, interest, @@ -477,7 +478,7 @@ Lsdb::onFetchLsaError(uint32_t errorCode, const std::string& msg, const ndn::Nam delay = ndn::time::seconds(0); } m_scheduler.schedule(delay, std::bind(&Lsdb::expressInterest, this, - interestName, /*??*/0, retransmitNo + 1, deadline)); + interestName, retransmitNo + 1, /*Multicast FaceID*/0, deadline)); } } }