Luminarys / synapse

Synapse BitTorrent Daemon
https://synapse-bt.org
ISC License
855 stars 48 forks source link

Failed to delete torrents: Error: Failed to received torrent resource list! #217

Open kpcyrd opened 3 years ago

kpcyrd commented 3 years ago

I'm trying to use sycli del -f with xargs -0, this kind-of randomly fails with this error at some point.

Failed to delete torrents: Error: Failed to received torrent resource list!

Using xargs -0L1 seems to work much better, so only a single torrent is deleted at a time.

Luminarys commented 3 years ago

Hmm, it looks like this error is caused by a race condition in which one thread deletes a resource, and another thread has filter subscribed to a list with that resource right before it's deleted, then after deletion attempts to subscribe (as it needs to search by name in some cases). I think the best fix here is to have the delete function support taking multiple torrent IDs.