Closed mnaamani closed 7 years ago
@bedeho Ready for review
I decided to avoid sending choke/unchoke messages and avoid interfering with libtorrents mechanism.
Reading about upload_mode it doesn't appear to be the best way to prevent downloading, because it also depends on the torrent not to be auto-managed. It meant to be more of a temporary state to
It is sufficient and most straight forward to override on_requeset and write_request to achieve the desired LibtorrentInteraction.
WIP
on_request
andwrite_request
peer plugin methods to prevent libtorrent sending piece requests, and processing piece requests.