mirror of https://github.com/aria2/aria2
07e91896e1
To add timeout to async name resolution: * src/AbstractCommand.h (nameResolveFinished): New function. This is not elegant way. It needs to be more refined. (nameResolverCheck): New variable. * src/AbstractCommand.cc (AbstractCommand): Added nameResolverCheck. (execute): Added the check whether the name resolution has finished. (setNameResolverCheck): Set nameResolverCheck to true. (disableNameResolverCheck): Set nameResolverCheck to false. (nameResolverFinished): New function. * src/FtpInitiateConnectionCommand.h (nameResolverFinished): New function. * src/HttpInitiateConnectionCommand.h (nameResolverFinished): New function. To add the support for a non-compact response from a tracker: * src/PeerListProcessor.h: New class. * src/DefaultPeerListProcessor.h: New class. * src/DefaultPeerListProcessor.cc: New class. * src/CompactPeerListProcessor.h: New class. * src/CompactPeerListProcessor.cc: New class. * src/DelegatingPeerListProcessor.h: New class. * src/DelegatingPeerListProcessor.cc: New class. * src/TorrentMan.cc (addPeer): New function(overload). (addPeer): Delete unused peers only when new peer is added. * src/TorrentMan.h (PeerListProcessor.h): Included. (Peers): Removed. (addPeer): New function(overload). * src/TrackerUpdateCommand.cc (netinet/in.h): Removed. (DelegatingPeerListProcessor.h): Included. (execute): Updated to use DelegatingPeerListProcessor. To fix the memory leak in TorrentMan::peers: * src/PeerAbstractCommand.cc (onAbort): Added peer->resetStatus(). * src/Peer.h (resetStatus): Made public. To improve the precision of the speed calculation: * src/SpeedCalc.h (nextInterval): New variable. * src/SpeedCalc.cc (reset): Added nextInterval. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC. (changeSw): Set nextInterval to 15 seconds relative to the current instant time. * src/main.cc (showVersion): Updated. |
||
---|---|---|
.. | ||
4096chunk.txt | ||
AllTest.cc | ||
AllowedFastMessageTest.cc | ||
Base64Test.cc | ||
BitfieldManTest.cc | ||
BitfieldMessageTest.cc | ||
CancelMessageTest.cc | ||
ChokeMessageTest.cc | ||
ChunkedEncodingTest.cc | ||
CookieBoxTest.cc | ||
DataTest.cc | ||
DefaultDiskWriterTest.cc | ||
DefaultPeerListProcessorTest.cc | ||
DictionaryTest.cc | ||
FeatureConfigTest.cc | ||
FileTest.cc | ||
HaveAllMessageTest.cc | ||
HaveMessageTest.cc | ||
HaveNoneMessageTest.cc | ||
InterestedMessageTest.cc | ||
ListTest.cc | ||
Makefile.am | ||
Makefile.in | ||
MetaFileUtilTest.cc | ||
MetalinkEntryTest.cc | ||
MetalinkerTest.cc | ||
MultiDiskWriterTest.cc | ||
NotInterestedMessageTest.cc | ||
OptionTest.cc | ||
PeerMessageUtilTest.cc | ||
PieceMessageTest.cc | ||
RejectMessageTest.cc | ||
RequestMessageTest.cc | ||
RequestTest.cc | ||
RequestToString.cc | ||
SegmentManTest.cc | ||
ShaVisitorTest.cc | ||
ShareRatioSeedCriteriaTest.cc | ||
SpeedCalcTest.cc | ||
SuggestPieceMessageTest.cc | ||
TimeSeedCriteriaTest.cc | ||
TorrentManTest.cc | ||
UnchokeMessageTest.cc | ||
UtilTest.cc | ||
Xml2MetalinkProcessorTest.cc | ||
file1r.txt | ||
file2r.txt | ||
file3r.txt | ||
test.torrent | ||
test.xml |