ttorrent icon indicating copy to clipboard operation
ttorrent copied to clipboard

Interrupting the in/out threads so they can get out of select()

Open zanella opened this issue 9 years ago • 1 comments

Since the thread gets stuck in the selector you get a leak of fds, and threads

zanella avatar Oct 13 '16 14:10 zanella

Another approach is to use select(long timeout), but I assumed this one (timeout) would use more CPU, and as is per this MR my daemon has stopped leaking fds / threads already

zanella avatar Oct 13 '16 15:10 zanella