tatsuhiro-t/aria2 — pull request #46 by nmaier (2013-02-25 09:42:42+00:00)
Title: Fix addDownload infinite loop when max-download-results is reached

RequestGroupMan::addDownloadResult will to purge the oldest result according to max-download-results, or at least this is how it is supposed to be.

The implementation however does not actually purge anything, ever. The while loop is therefore an infinite busy loop, halting aria2 while buring CPU circles.

Forgive my somewhat rusty C++/STL