aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/hicn/transport/protocols/manifest_indexing_manager.h
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-11-21 09:28:55 +0000
committerGerrit Code Review <gerrit@fd.io>2019-11-21 09:28:55 +0000
commit3638de122f58225253eedbbfd125951ec56a1fa1 (patch)
treef6b1845a2fc95184b4acb731b6af2fe7c23de7fe /libtransport/src/hicn/transport/protocols/manifest_indexing_manager.h
parentae6f3b8e1f55fc4bb7807c293850d3cb46cab1fd (diff)
parent0010de10dcb9183e6c6876fcaaf2283a0ef1ed86 (diff)
Merge "[HICN-402] Limit in-flight interests for manifests"
Diffstat (limited to 'libtransport/src/hicn/transport/protocols/manifest_indexing_manager.h')
-rw-r--r--libtransport/src/hicn/transport/protocols/manifest_indexing_manager.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libtransport/src/hicn/transport/protocols/manifest_indexing_manager.h b/libtransport/src/hicn/transport/protocols/manifest_indexing_manager.h
index 5f74ef0bf..74c86eb60 100644
--- a/libtransport/src/hicn/transport/protocols/manifest_indexing_manager.h
+++ b/libtransport/src/hicn/transport/protocols/manifest_indexing_manager.h
@@ -21,6 +21,9 @@
#include <list>
+/* #define MAX_MANIFESTS_IN_FLIGHT std::numeric_limits<uint32_t>::max() */
+#define MAX_MANIFESTS_IN_FLIGHT 10
+
namespace transport {
namespace protocol {
@@ -57,6 +60,7 @@ class ManifestIndexManager : public IncrementalIndexManager,
void onManifestTimeout(Interest::Ptr &&i);
protected:
+ uint32_t manifests_in_flight_;
SuffixQueue suffix_queue_;
SuffixQueue::iterator next_reassembly_segment_;
SuffixQueue::iterator next_to_retrieve_segment_;