torrent: Deadlock, Goroutines count reaching sky high

This bug was not present in the v1.47 build I was using, However updated the client today as suggested in https://github.com/anacrolix/torrent/issues/813#issuecomment-1435821697 , After adding around 10 torrents, the runtime started getting goroutine spikes, smells to be a deadlock caused by new changes

Goroutines: 45570
Alloc: 2.4 GB
TotalAlloc: 795.1 GB
HeapAlloc: 2.4 GB
NumGC: 1594

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17 (10 by maintainers)

Commits related to this issue

Most upvoted comments

it works, thank you

@JaskaranSM I believe I have a fix, if the above suspect is indeed the issue. A stack trace would have confirmed it. Please try out this commit: 3c8d70297add48611659626d9d8a583e2448e963.