Skip to content

Add Strategy Pattern in the piece selection algorithm#149

Open
era wants to merge 61 commits into
mpetazzoni:masterfrom
era:master
Open

Add Strategy Pattern in the piece selection algorithm#149
era wants to merge 61 commits into
mpetazzoni:masterfrom
era:master

Conversation

@era

@era era commented Oct 21, 2015

Copy link
Copy Markdown

Hello guys,

I'm making this pull request to allow the programmer to choose the order which the chunks should be requested. Basicaly, now is possible to choose between RareFirstStrategy (is the original strategy from the lib) or IndexFirstStrategy (it selects pieces following the id order, it's good to stream videos using torrents).

I don't know if it's something that you wanted to add in this project, but was necessary for what I was doing.

Regards,

pankdm and others added 30 commits April 10, 2013 12:37
…sage.parse

Order of the parameters to the HTTPAnnounceRequestMessage constructor was incorrect in the parse() method. Thanks to Dan Oxlade for reporting the problem.

Closes mpetazzoni#48.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Allow trackerless torrent files mpetazzoni#2

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
…h InboundThread and OutboundThread to a common ExchangeThread superclass.
Add ability to set upload/download rate limits.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Fix read when message size wasn't read in one step

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
BDecode support for negative integers

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Fixes bug with selecting the announce client

A previous change introduced a bug in the selection
of the announce tier and client. Closes mpetazzoni#51.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Use maven-shade-plugin to produce executable jar

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Update pom for compatibility with the maven-release-plugin

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Clean up javadoc problems

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Shell script updates for wider platform compatibility

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Move entry-point main methods to separate package

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
pwoodworth and others added 28 commits September 12, 2013 21:27
Use commons-codec for hex and digest encoding

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Fix Piece compareTo ordering

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
to tell us when a peer incoming channel is ready to read.

This fixes excessive CPU usage when running a peer over a slow
link. In that case, an IncomingThread would spend >90% of its time
repeatedly calling SocketChannel.read. Observed CPU use was in excess
of 350% on a quad-core MacBook Air.
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Change FileCollectionStorage to not write 0 bytes to the next file at the end
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
Signed-off-by: Maxime Petazzoni <max@signalfuse.com>
With ttorrent now being available on Maven Central, this closes mpetazzoni#12.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Fix dependency section
Completed a TODO in the CLI for Torrent creation: added support for
multiple announce URLs. Now a number of announcement URLs can be listed
with -a and will be added via Torrent.create (multiple announcement
list constructor existed previously).
Added support for multiple announce URLs to CLI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.