aria2/src
Tatsuhiro Tsujikawa e6e0177560 * src/PeerInteractionCommand.cc (checkInactiveConnection): New
function
	(detectMessageFlooding): Updated.
	(checkLongTimePeerChoking): Updated.
	(getNewPieceAndSendInterest): Added debug log.
	* src/PeerInteractionCommand.h: New function 
checkInactiveConnection()
	
	* src/TorrentMan.cc (deleteOldErrorPeers): Updated.
	(getPeer): Updated.
	* src/TorrentMan.h: Added MAX_PEER_ERROR.
	
	* src/PeerAbstractCommand.cc (onAbort): Increment error counter.

	* src/PeerListenCommand.cc (execute): Close connection if 
incoming peer
	is localhost.

	* src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 
60.

	* src/PendingMessage.cc (processMessage): Not to send piece 
message
	if peer is not interested in the pieces localhost has.

	* src/Peer.cc (shouldChoke): Updated.

	* src/SendMessageQueue.cc (cancelAllRequest): Fixed.
2006-03-31 13:58:22 +00:00
..
AbstractCommand.cc * AbstractCommand.cc: casted timeout value to long long int. 2006-03-23 10:47:25 +00:00
AbstractCommand.h * AbstractCommand.cc: 2006-03-01 02:26:29 +00:00
AbstractDiskWriter.cc 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
AbstractDiskWriter.h 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
Base64.cc Initial import 2006-02-17 13:35:04 +00:00
Base64.h * Util.{h,cc}: added startsWith(). 2006-02-28 02:25:45 +00:00
BitfieldMan.cc * AbstractCommand.cc: casted timeout value to long long int. 2006-03-23 10:47:25 +00:00
BitfieldMan.h * src/PeerInteractionCommand.cc (checkInactiveConnection): New 2006-03-31 13:58:22 +00:00
ChunkedEncoding.cc * AbstractCommand.cc: casted timeout value to long long int. 2006-03-23 10:47:25 +00:00
ChunkedEncoding.h * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary, 2006-03-09 14:52:07 +00:00
Command.h * Util.{h,cc}: added startsWith(). 2006-02-28 02:25:45 +00:00
ConnectionException.h Initial import 2006-02-17 13:35:04 +00:00
ConsoleDownloadEngine.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
ConsoleDownloadEngine.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
CookieBox.cc * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
CookieBox.h * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
Data.cc * AbstractCommand.cc: casted timeout value to long long int. 2006-03-23 10:47:25 +00:00
Data.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
DefaultDiskWriter.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
DefaultDiskWriter.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
Dictionary.cc * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
Dictionary.h * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
Directory.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
Directory.h * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
DiskWriter.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
DlAbortEx.h 2006-02-22 12:16:10 +00:00
DlRetryEx.h 2006-02-22 12:16:10 +00:00
DownloadCommand.cc 2006-03-05 06:32:01 +00:00
DownloadCommand.h * AbstractCommand.cc: 2006-03-01 02:26:29 +00:00
DownloadEngine.cc * Request.h: Added AFTER_COMPLETED event. 2006-03-24 11:59:18 +00:00
DownloadEngine.h * Request.h: Added AFTER_COMPLETED event. 2006-03-24 11:59:18 +00:00
DownloadMethod.h Initial import 2006-02-17 13:35:04 +00:00
Exception.h * Util.{h,cc}: added startsWith(). 2006-02-28 02:25:45 +00:00
File.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
File.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
FtpConnection.cc * HttpConnection.cc: 2006-03-01 15:28:03 +00:00
FtpConnection.h * Util.{h,cc}: added startsWith(). 2006-02-28 02:25:45 +00:00
FtpDownloadCommand.cc 2006-02-21 12:28:42 +00:00
FtpDownloadCommand.h 2006-02-21 12:28:42 +00:00
FtpInitiateConnectionCommand.cc 2006-02-21 14:00:58 +00:00
FtpInitiateConnectionCommand.h 2006-02-21 12:28:42 +00:00
FtpNegotiationCommand.cc 2006-02-21 14:00:58 +00:00
FtpNegotiationCommand.h 2006-02-21 12:28:42 +00:00
FtpTunnelRequestCommand.cc 2006-02-21 12:28:42 +00:00
FtpTunnelRequestCommand.h 2006-02-21 12:28:42 +00:00
FtpTunnelResponseCommand.cc 2006-02-21 12:28:42 +00:00
FtpTunnelResponseCommand.h 2006-02-21 12:28:42 +00:00
HandshakeMessage.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
HttpConnection.cc * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
HttpConnection.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
HttpDownloadCommand.cc 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
HttpDownloadCommand.h 2006-02-21 12:27:17 +00:00
HttpHeader.cc * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
HttpHeader.h * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
HttpInitiateConnectionCommand.cc 2006-02-22 15:40:04 +00:00
HttpInitiateConnectionCommand.h 2006-02-22 15:40:04 +00:00
HttpProxyRequestCommand.cc 2006-02-21 12:27:17 +00:00
HttpProxyRequestCommand.h Initial import 2006-02-17 13:35:04 +00:00
HttpProxyResponseCommand.cc 2006-02-21 12:27:17 +00:00
HttpProxyResponseCommand.h 2006-02-21 12:27:17 +00:00
HttpRequestCommand.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
HttpRequestCommand.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
HttpResponseCommand.cc * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
HttpResponseCommand.h 2006-02-21 12:27:17 +00:00
InitiateConnectionCommandFactory.cc 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
InitiateConnectionCommandFactory.h * Added HTTPS support. 2006-02-17 18:51:12 +00:00
List.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
List.h * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
Logger.h 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
Makefile.am Added new class SendMessageQueue that includes PendingMessages 2006-03-28 15:23:51 +00:00
Makefile.in Added new class SendMessageQueue that includes PendingMessages 2006-03-28 15:23:51 +00:00
MetaEntry.h 2006-03-21 15:21:11 +00:00
MetaEntryVisitor.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
MetaFileUtil.cc * PeerInteractionCommand.cc: added a call to 2006-03-22 15:10:03 +00:00
MetaFileUtil.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
Option.cc 2006-02-22 11:18:47 +00:00
Option.h * Util.{h,cc}: added startsWith(). 2006-02-28 02:25:45 +00:00
Peer.cc * src/PeerInteractionCommand.cc (checkInactiveConnection): New 2006-03-31 13:58:22 +00:00
Peer.h * src/PeerInteractionCommand.cc (checkInactiveConnection): New 2006-03-31 13:58:22 +00:00
PeerAbstractCommand.cc * src/PeerInteractionCommand.cc (checkInactiveConnection): New 2006-03-31 13:58:22 +00:00
PeerAbstractCommand.h Added new class SendMessageQueue that includes PendingMessages 2006-03-28 15:23:51 +00:00
PeerConnection.cc 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
PeerConnection.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
PeerInitiateConnectionCommand.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
PeerInitiateConnectionCommand.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
PeerInteractionCommand.cc * src/PeerInteractionCommand.cc (checkInactiveConnection): New 2006-03-31 13:58:22 +00:00
PeerInteractionCommand.h * src/PeerInteractionCommand.cc (checkInactiveConnection): New 2006-03-31 13:58:22 +00:00
PeerListenCommand.cc * src/PeerInteractionCommand.cc (checkInactiveConnection): New 2006-03-31 13:58:22 +00:00
PeerListenCommand.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
PeerMessage.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
PeerMessage.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
PeerMessageUtil.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
PeerMessageUtil.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
PendingMessage.cc * src/PeerInteractionCommand.cc (checkInactiveConnection): New 2006-03-31 13:58:22 +00:00
PendingMessage.h Added new class SendMessageQueue that includes PendingMessages 2006-03-28 15:23:51 +00:00
Piece.cc * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
Piece.h * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
PreAllocationDiskWriter.cc * Request.h: Added AFTER_COMPLETED event. 2006-03-24 11:59:18 +00:00
PreAllocationDiskWriter.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
Request.cc 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
Request.h * Request.h: Added AFTER_COMPLETED event. 2006-03-24 11:59:18 +00:00
RequestSlot.cc * AbstractCommand.cc: casted timeout value to long long int. 2006-03-23 10:47:25 +00:00
RequestSlot.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
RequestSlotMan.cc Added new class SendMessageQueue that includes PendingMessages 2006-03-28 15:23:51 +00:00
RequestSlotMan.h Added new class SendMessageQueue that includes PendingMessages 2006-03-28 15:23:51 +00:00
Segment.h * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
SegmentMan.cc * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
SegmentMan.h * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
SegmentSplitter.cc * Logger.h: 2006-03-01 07:14:52 +00:00
SegmentSplitter.h * Util.{h,cc}: added startsWith(). 2006-02-28 02:25:45 +00:00
SendMessageQueue.cc * src/PeerInteractionCommand.cc (checkInactiveConnection): New 2006-03-31 13:58:22 +00:00
SendMessageQueue.h Added new class SendMessageQueue that includes PendingMessages 2006-03-28 15:23:51 +00:00
ShaVisitor.cc 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
ShaVisitor.h 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
SimpleLogger.cc 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
SimpleLogger.h 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
SleepCommand.cc * AbstractCommand.cc: casted timeout value to long long int. 2006-03-23 10:47:25 +00:00
SleepCommand.h * Added Referer support. 2006-02-18 05:13:21 +00:00
Socket.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
Socket.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
SocketCore.cc 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
SocketCore.h 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
SocketIOException.h Initial import 2006-02-17 13:35:04 +00:00
SplitFirstSegmentSplitter.cc * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
SplitFirstSegmentSplitter.h new 2006-02-22 14:31:33 +00:00
SplitSlowestSegmentSplitter.cc * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
SplitSlowestSegmentSplitter.h new 2006-02-22 14:31:33 +00:00
TimeoutException.h Initial import 2006-02-17 13:35:04 +00:00
TorrentAutoSaveCommand.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
TorrentAutoSaveCommand.h 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
TorrentConsoleDownloadEngine.cc * Request.h: Added AFTER_COMPLETED event. 2006-03-24 11:59:18 +00:00
TorrentConsoleDownloadEngine.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
TorrentDownloadEngine.cc * Request.h: Added AFTER_COMPLETED event. 2006-03-24 11:59:18 +00:00
TorrentDownloadEngine.h * Request.h: Added AFTER_COMPLETED event. 2006-03-24 11:59:18 +00:00
TorrentMan.cc * src/PeerInteractionCommand.cc (checkInactiveConnection): New 2006-03-31 13:58:22 +00:00
TorrentMan.h * src/PeerInteractionCommand.cc (checkInactiveConnection): New 2006-03-31 13:58:22 +00:00
TrackerDownloadCommand.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
TrackerDownloadCommand.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
TrackerInitCommand.cc Added new class SendMessageQueue that includes PendingMessages 2006-03-28 15:23:51 +00:00
TrackerInitCommand.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
TrackerUpdateCommand.cc Added new class SendMessageQueue that includes PendingMessages 2006-03-28 15:23:51 +00:00
TrackerUpdateCommand.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
TrackerWatcherCommand.cc 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
TrackerWatcherCommand.h 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
TransferEncoding.h * Util.{h,cc}: added startsWith(). 2006-02-28 02:25:45 +00:00
Util.cc * Request.h: Added AFTER_COMPLETED event. 2006-03-24 11:59:18 +00:00
Util.h * Request.h: Added AFTER_COMPLETED event. 2006-03-24 11:59:18 +00:00
alloca.c Added intl/* 2006-03-07 13:08:09 +00:00
common.h * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
main.cc * src/PeerInteractionCommand.cc (checkInactiveConnection): New 2006-03-31 13:58:22 +00:00
message.h added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
messageDigest.h 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-03-27 14:47:26 +00:00
prefs.h Added new class SendMessageQueue that includes PendingMessages 2006-03-28 15:23:51 +00:00
right.txt Initial import 2006-02-17 13:35:04 +00:00