Show
Ignore:
Timestamp:
11/04/06 11:05:28 (6 years ago)
Author:
rakshasa
Message:

* Properly nul-terminate the info hash and client id in the tracker
request.

* Implemented options for read-ahead of
chunks. 'preload_min_pipelined', 'preload_min_size' and
'preload_required_rate' are used to decide when to read-ahead a chunk.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/libtorrent/src/data/chunk_list.cc

    r786 r800  
    184184 
    185185  } else { 
    186     handle->object()->dec_references(); 
    187  
    188     if (handle->object()->references() == 0) { 
     186    if (handle->object()->dec_references() == 0) { 
    189187      if (is_queued(handle->object())) 
    190188        throw internal_error("ChunkList::release(...) tried to unmap a queued chunk.");