Add some TODOs
This commit is contained in:
parent
3e74396c66
commit
361c8654c7
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue