These are chat archives for anacrolix/torrent

29th
Mar 2018
Matt Joiner
@anacrolix
Mar 29 2018 01:22
@axet It checks that there are no requests counted for connections that have been removed. Do you have the number that it panicked with? I think @deranjer was having the same issue, the number is negative which means for some reason it's deleting requests multiple times.
deranjer
@deranjer
Mar 29 2018 01:24
@axet Do you have a codebase I can look at? Mine was a logical error where I was deleting a torrent while a goroutine was looping over the torrents and that caused the goroutine to crash as it tried to count connections for a removed torrent.
axet
@axet
Mar 29 2018 07:47

@deranjer that what it seems happening, but how can you know if here any goroutines running? When I finish downloading torrent I stop it and remove it. and app crashes. Seems like it is not suppose to happen, and removing torrents should clean all goroutines. Source is here, but a bit complicated, sice I change original 'torrent' repo.

https://gitlab.com/axet/libtorrent
https://gitlab.com/axet/torrent

axet
@axet
Mar 29 2018 10:33
@anacrolix I guess this means I can not remove active / seeding torrents before all connections self removed?