Skip to content

Tracker lifecycle fix, less encoding issues and improved uTP packet loss handling

Compare
Choose a tag to compare
@Johnnei Johnnei released this 19 Jul 20:10
· 213 commits to develop since this release

Added

  • JBT-43: IBencodedValue#asBytes allows for efficient transport of string representing raw bytes
    (ex. the hashes in the .torrent file)

Improvements

  • JBT-32: Prevent reads on Piece#checkHash when the hash can't possibly be correct.
  • JBT-38: uTP is now better capable of dealing with packet loss.

Fixes

  • JBT-40: The ITracker interface was not correctly added to the torrent lifecycle causes no peers to be fetched.
  • JBT-41: Torrent#isDownloadingMetadata() returned false too early. This has been corrected.
  • JBT-42: Fix FullPieceSelect having inconsistent piece sorting.
  • JBT-43: Bencoding now takes in an InStream and reads the input as raw bytes as intended by the spec. This also
    resolves the encoding issues.

Removal

  • JBT-43: Bencoding#getCharactersRead() The corrected API takes in a stream which won't be consumed further than
    needed.