Add some TODOs

This commit is contained in:
Matt Joiner 2017-11-05 15:26:23 +11:00
parent 3e74396c66
commit 361c8654c7
3 changed files with 3 additions and 1 deletions

View File

@ -410,6 +410,7 @@ func (cn *connection) writer(keepAliveTimeout time.Duration) {
postedKeepalives.Add(1)
}
if buf.Len() == 0 {
// TODO: Minimize wakeups....
cn.writerCond.Wait()
continue
}

View File

@ -30,7 +30,7 @@ const (
//
// Fast Extension ([7]|=0x04):
// http://bittorrent.org/beps/bep_0006.html.
// Disabled until AllowedFast is implemented.
// Disabled until AllowedFast is implemented. TODO
//
// DHT ([7]|=1):
// http://www.bittorrent.org/beps/bep_0005.html

View File

@ -1476,6 +1476,7 @@ func (t *Torrent) pieceHashed(piece int, correct bool) {
}
func (t *Torrent) cancelRequestsForPiece(piece int) {
// TODO: Make faster
for cn := range t.conns {
cn.tickleWriter()
}