maikonnm / libtorrent

Automatically exported from code.google.com/p/libtorrent
0 stars 0 forks source link

libtorrent stops all torrents on error #93

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Remove files on the hard disk from a running torrent
2. libtorrent reports an I/O error and pauses the torrent (which is OK)
3. Other torrents are paused too (this is not OK)

What is the expected output? What do you see instead?
libtorrent should stop only pause the torrent for which the error occured.

What version of the product are you using? On what operating system?
libtorrent v0.14.10 on Debian Linux

Please provide any additional information below.
- This problem was reported by a qBittorrent user on my bug tracker.
- One guess is that libtorrent pauses the other torrents because it assumes 
they will encounter the same I/O error since they are on the same hard disk?

Original issue reported on code.google.com by dch...@gmail.com on 27 Jun 2010 at 5:01

GoogleCodeExporter commented 9 years ago
The disk cache doesn't handle errors very well in the 0.14.x branch. Once a 
block is in the cache, the peer thinks that it has been written and forgets 
about it. If the block later fails when it's flushed, the error may be 
attributed to a different torrent.

This has been fixed in the 0.15 branch.

Original comment by arvid.no...@gmail.com on 28 Jun 2010 at 12:10

GoogleCodeExporter commented 9 years ago

Original comment by arvid.no...@gmail.com on 28 Jun 2010 at 12:11