#7 Too many connections

open
nobody
None
5
2006-03-06
2006-03-06
No

You can easily get PenguinTV to try downloading
hundreds of files simultaneously.
There should be a user definable limit to how many
attachments it tries to download at the same time and
that number should default to 4.

Discussion

  • Owen Williams

    Owen Williams - 2006-04-21

    Logged In: YES
    user_id=26511

    Although all of the downloads will have "working" icons,
    only three files are downloaded at a time. The rest are
    just waiting to be queued up. There isn't any UI that
    indicates this, however.

     
  • Christian Lohmaier

    the number of simultaneous downloads is not 3 as in the comment from 2006, but in 3.60.0 it is set to 5 (way to much IMHO) - I reduced it to 2.

    Here's a patch to reduce the downloads from 5 simultaneous ones to 2 (adjust to your liking) - A UI would be nice to have, but at least you can configure it in the sources..

     
  • Christian Lohmaier

    --- penguintv/MediaManager.py 2008-10-04 14:25:51.000000000 +0200
    +++ penguintv/MediaManager.py 2008-10-04 14:26:26.000000000 +0200
    @@ -52,7 +52,7 @@
    if utils.RUNNING_HILDON:
    max_downloads = 2
    else:
    - max_downloads = 5
    + max_downloads = 2
    self.pool = ThreadPool.ThreadPool(max_downloads, "MediaManager")
    self.downloads = []
    self.db = ptvDB.ptvDB()

     

Log in to post a comment.