Added SegmentStore class and use in ContentClosure.upcall to keep at least 2 outstanding requests for segments to improve throughput.
diff --git a/js/ndnProtocol.xpi b/js/ndnProtocol.xpi
index 2b10884..904f8a5 100644
--- a/js/ndnProtocol.xpi
+++ b/js/ndnProtocol.xpi
Binary files differ
diff --git a/js/ndnProtocol/components/ndnProtocolService.js b/js/ndnProtocol/components/ndnProtocolService.js
index 71c2bdd..fa25c0e 100644
--- a/js/ndnProtocol/components/ndnProtocolService.js
+++ b/js/ndnProtocol/components/ndnProtocolService.js
@@ -228,6 +228,7 @@
     }

 

     if (this.finalSegmentNumber == null && !this.didRequestFinalSegment) {

+        this.didRequestFinalSegment = true;

         // Try to determine the final segment now.

         var components = contentObject.name.components.slice

             (0, contentObject.name.components.length - 1);