* When a piece has zero bytes left, it could be removed from pieces by bytes left, removing O(n^2) overhead searching for incomplete pieces for every connection.
* Make torrent read requests higher priority than everything else?
* I think the high-low water is broken with responsive download strategy.
- * Properly encapsulate the mmap/span stuff.
\ No newline at end of file
+ * Properly encapsulate the mmap/span stuff.
+ * Implement keep-alive timeout when receiving.
+ * Wrap connection sockets to convert certain errors and timeout on inactivity with no keep-alives.
\ No newline at end of file