-
-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pieces delete issue #471
Comments
@anacrolix |
@anacrolix ??? |
I'm not sure I quite understand, however if the issue is around having a limited storage cache, there are improvements in master for this now. You can provide an indication to the Client of the available storage for each torrent, or even Client, and it will try to avoid thrashing and excessive readaheads. I suspect this could help. Please try master. |
|
I use self storage with self pieces impl. In piece using mem buffer(slice) when all size of buffers is more than set in sets first buffer clean but=nil and os mem clean. When reader seek start and begin read, client read piece as complete, but buffer is nil and completions impl sets to false. My piece return eof and client not readahead. Client read and reload torrent only in reader piece position |
|
I think I follow this part. On a read error, the client should try to refresh the completion state for the entire readahead window as an optimisation. I think you're suggesting that it doesn't? It looks like it should here Line 236 in 9c81516
|
|
Thx this help me in new version |
Thank you for following this up. |
Hi,
how do you properly delete pieces?
I have a download that goes into memory.
There is a certain cache, I open the reader, it reads and send to http.
If there are more pieces than the size of the cache, then the last read piece is released.
https://github.com/YouROK/TorrServer/blob/master/server/torr/storage/torrstor/cache.go
https://github.com/YouROK/TorrServer/blob/master/server/torr/storage/torrstor/piece.go
Everything is fine, until one moment, if I give these chunks a priority, it gives an error and does not upload.
Is there any way to reset the state of the piece as it was when the torrent was opened?
The text was updated successfully, but these errors were encountered: