apps: Solving a serious bug #33 in ndn::ConsumerWindow
In certain cases, the number of in-flight packets was maintained in a
wrong way, creating inconsistencies and incorrect decision on when to
send out a new Interests. That is, the number of in-flight
packets could be non-zero, while there were no outstanding packets at all.
Thanks to Cheng Yi for the bug discovery
diff --git a/apps/ndn-consumer-window.h b/apps/ndn-consumer-window.h
index df79fb3..2057123 100644
--- a/apps/ndn-consumer-window.h
+++ b/apps/ndn-consumer-window.h
@@ -59,6 +59,9 @@
virtual void
OnTimeout (uint32_t sequenceNumber);
+ virtual void
+ WillSendOutInterest (uint32_t sequenceNumber);
+
protected:
/**
* \brief Constructs the Interest packet and sends it using a callback to the underlying NDN protocol