Browse Source

2009-11-01 Tatsuhiro Tsujikawa <[email protected]>

	Don't reuse URI if Request pool is not empty.
	* src/CreateRequestCommand.cc
Tatsuhiro Tsujikawa 16 years ago
parent
commit
489cfe3d0e
2 changed files with 7 additions and 1 deletions
  1. 5 0
      ChangeLog
  2. 2 1
      src/CreateRequestCommand.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2009-11-01  Tatsuhiro Tsujikawa  <[email protected]>
+
+	Don't reuse URI if Request pool is not empty.
+	* src/CreateRequestCommand.cc
+
 2009-10-31  Tatsuhiro Tsujikawa  <[email protected]>
 
 	Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to

+ 2 - 1
src/CreateRequestCommand.cc

@@ -70,7 +70,8 @@ bool CreateRequestCommand::executeInternal()
       (_segments.front()->getPositionToWrite());
   }
   if(_fileEntry->getRemainingUris().empty() &&
-     getOption()->getAsBool(PREF_REUSE_URI)) {
+     getOption()->getAsBool(PREF_REUSE_URI) &&
+     _fileEntry->countPooledRequest() == 0) {
     _fileEntry->reuseUri(_requestGroup->getNumConcurrentCommand());
   }
   req = _fileEntry->getRequest(_requestGroup->getURISelector(),