Comments (16)
It supports changing priorities, the necessary methods just aren't exposed. This can be added trivially with the current master branch. Your other 2 methods can also be added.
The noprio branch is an experiment that removes the internal priorities that aren't currently exposed, and replaces them with priorities based on the offsets of Torrent Readers, so as to allow more responsive seeking on an incomplete torrent.
from torrent.
I see your downstream issue will require a Torrent.SkipRegion/File.NoDownload method either way. Both master and noprio can support this.
from torrent.
Okay awesome
On Wed, 23 Dec 2015 at 3:10 AM Matt Joiner [email protected] wrote:
I see your downstream issue will require a
Torrent.SkipRegion/File.NoDownload method either way. Both master and
noprio can support this.—
Reply to this email directly or view it on GitHub
#48 (comment).
from torrent.
Send PR or I'll address this myself in the next few days.
from torrent.
Cool, I'll leave this with you. I was just having a look through the noprio branch and I couldn't see an easy way to add it.
from torrent.
Question relating to this issue, if I created a reader for a torrent, begin reading a particular file and close the reader midway through. Does that region get de-prioritised?
I can see that the reader is nil'd though I wasn't sure the regions are re-prioritised somehow.
I'm just wondering if there's another way to lower priorities.
from torrent.
It does not get de-prioritized. This is one of the reasons for the noprio branch, which will support that. There's no public way to deprioritize currently, it's still a work in progress.
from torrent.
I'm about to merge what should allow for this. If you'd like to do some testing with the priority changes, I'll proceed with implementing the ability to File.Cancel().
from torrent.
Awesome! Will probably have some time tomorrow to test
On Thu, Jan 28, 2016 at 8:14 PM Matt Joiner [email protected]
wrote:
I'm about to merge what should allow for this. If you'd like to do some
testing with the priority changes, I'll proceed with implementing the
ability to File.Cancel().—
Reply to this email directly or view it on GitHub
#48 (comment).
from torrent.
So skipping regions is now supported via torrent.Reader.Close()
? Or will it be supported when File.Cancel()
lands?
from torrent.
Ah, Cancel needs to land.
from torrent.
Cool, will be watching 👀
from torrent.
I've Added File.Cancel(), and Torrent.CancelPieces().
from torrent.
Awesome, will give it a test this weekend 👍
On Fri, 5 Feb 2016 at 1:22 AM Matt Joiner [email protected] wrote:
I've Added File.Cancel(), and Torrent.CancelPieces().
—
Reply to this email directly or view it on GitHub
#48 (comment).
from torrent.
No one else has commented here so I'll assume its all good! Will reopen if I find anything
from torrent.
I added a simple test, seems legit.
from torrent.
Related Issues (20)
- Does this anacrolix/torrent support storage permission? HOT 2
- About holepunching test HOT 5
- Reinstate torrentfs on CI using fuse-t?
- x/exp: breaking changes support HOT 8
- Cannot `go get` this library HOT 3
- Inferring reasons for stopped transfer? HOT 3
- Race from peerconn on data read of closed torrent with [email protected] HOT 4
- Clean up ClientConfig HTTP options HOT 3
- error bootstrapping during bucket refresh: getting starting nodes: nothing resolved [dht 0.0.0.0:42069 github.com/anacrolix/dht/v2 server.go:1395] HOT 7
- Webseed download extremely slow HOT 1
- Count the number of bytes uploaded or downloaded. HOT 6
- Peer Selection Algorithm
- undefined: sync.OnceFunc HOT 7
- Support passing context to `torrent.Reader` HOT 1
- How to config DHT listen port? HOT 4
- Add global semaphore to limit amount of pieceHashers
- Problem getting magnet metadata on large files HOT 6
- Client requests indefinitely on storage write errors HOT 42
- More than 3 times slow download speed over sqllite storage HOT 9
- Prioritize the use of local peers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torrent.