Show
Ignore:
Timestamp:
03/04/06 03:46:21 (3 years ago)
Author:
madcat
Message:

TCP server source requests are now split to 15-file-blocks, and sent at 4-minute intervals (max 75 files per 20 minutes). Rarest files are asked first.
UDP server source requests are now based on the rarity of the file, so that the rarest 25 or 31 files are always asked for. This should balance the average source count of large downloadlist, and ensure that all files have at least some sources.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hydranode/hncore/ed2k/downloadlist.h

    r2613 r2760  
    6060        uint32_t getSourceCount() const { return m_sources.size(); } 
    6161        uint64_t getLastSrcExch() const { return m_lastSrcExch; } 
    62         uint64_t getLastUdpQuery() const { return m_lastUdpQuery; } 
    6362        PartData* getPartData() const { return m_partData; } 
    6463        uint32_t getSourceLimit() const { return m_sourceLimit; } 
     
    124123        uint64_t          m_lastSrcExch;   //!< time of last source-exchange req 
    125124        uint32_t          m_sourceLimit;   //!< limit sources 
    126         uint64_t          m_lastUdpQuery;  //!< last udp query time 
    127125}; 
    128126 
     
    193191        bool valid(Download *ptr) const; 
    194192 
    195         /** 
    196          * Selects next download for sending ServerUDP query to 
    197          * 
    198          * \returns Download to be queried, or 0 if something goes wrong 
    199          */ 
    200         Download* getNextForUdpQuery(); 
    201  
    202193        //! Emitted when a download is removed 
    203194        boost::signal<void (Download&)> onRemoved;