mirror of https://github.com/aria2/aria2
				
				
				
			2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
If pipelining is enabled, we can always pool socket. * src/HttpDownloadCommand.ccpull/1/head
							parent
							
								
									1052600862
								
							
						
					
					
						commit
						2a2c8c5da0
					
				| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
2009-07-04  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 | 
			
		||||
 | 
			
		||||
	If pipelining is enabled, we can always pool socket.
 | 
			
		||||
	* src/HttpDownloadCommand.cc
 | 
			
		||||
 | 
			
		||||
2009-07-04  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 | 
			
		||||
 | 
			
		||||
	In a single file download, file size becomes known just after
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -80,12 +80,11 @@ bool HttpDownloadCommand::prepareForNextSegment() {
 | 
			
		|||
    e->commands.push_back(command);
 | 
			
		||||
    return true;
 | 
			
		||||
  } else {
 | 
			
		||||
    uint64_t loff = _fileEntry->gtoloff(_segments.front()->getPositionToWrite());
 | 
			
		||||
    if((req->isPipeliningEnabled() && loff == _fileEntry->getLength()) ||
 | 
			
		||||
    if(req->isPipeliningEnabled() ||
 | 
			
		||||
       (req->isKeepAliveEnabled() &&
 | 
			
		||||
	((!_transferEncodingDecoder.isNull() &&
 | 
			
		||||
	  _requestGroup->downloadFinished()) ||
 | 
			
		||||
	 loff == _fileEntry->getLength()))) {
 | 
			
		||||
	 _fileEntry->getLastOffset() == _segments.front()->getPositionToWrite()))) {
 | 
			
		||||
      e->poolSocket(req, isProxyDefined(), socket);
 | 
			
		||||
    }
 | 
			
		||||
    // The request was sent assuming that server supported pipelining, but
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue