]> Sergey Matveev's repositories - btrtrc.git/commit
Restrict the number of concurrent piece hashes
authorMatt Joiner <anacrolix@gmail.com>
Wed, 21 Aug 2019 03:31:33 +0000 (13:31 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 22 Aug 2019 00:17:06 +0000 (10:17 +1000)
commit4850ce6ab330babdb25af4c70cfe72c76b4321fb
treedc18d25d4fa0ec5d2f63e0ff5fe2de222fc534a2
parentee5e459ea3f8feae8d0b194449b8fd08814c7e1b
Restrict the number of concurrent piece hashes

This fixes bad behaviour where running out of file descriptors, and overloading the system with goroutines and concurrent I/O may cause newly started torrents to fail to hash data.
torrent.go