Task #4945
Updated by Ashlesh Gawande about 5 years ago
Tianxiang reported very frequent memory allocations when running PSync in ndnSIM traced to ndn-cxx SegmentFetcher. In sync if we set the sync interest lifetime to a particular value, PSync should send the sync interest on that schedule (sync interest lifetime / 2). (This is irrespective of frequent memory allocation problems). But due to the usage of SegmentFetcher, sync interest is sent more frequently (after 1 second, 2 second, and 4 second).
So we should add an option to SegmentFetcher to use constant interest timeout for first segment and turn it on in PSync.