diff --git a/download_strategies.go b/download_strategies.go index 2cc7289e..8be1be40 100644 --- a/download_strategies.go +++ b/download_strategies.go @@ -16,6 +16,14 @@ type DefaultDownloadStrategy struct { } func (s *DefaultDownloadStrategy) FillRequests(t *torrent, c *connection) { + if c.Interested { + if c.PeerChoked { + return + } + if len(c.Requests) >= c.PeerMaxRequests { + return + } + } th := s.heat[t] addRequest := func(req request) (again bool) { piece := t.Pieces[req.Index]