diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-12 18:50:53 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-12 18:50:53 +0100 |
commit | 16d3f1830a9feeabd175644569fe976a5ba475ba (patch) | |
tree | f050586586c9b139e1a771e1b09fe241ef9fae12 /module/network | |
parent | mu fix (diff) | |
download | pyload-16d3f1830a9feeabd175644569fe976a5ba475ba.tar.xz |
reduced buffersize
Diffstat (limited to 'module/network')
-rw-r--r-- | module/network/HTTPDownload.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/network/HTTPDownload.py b/module/network/HTTPDownload.py index 50b33cd97..c43d714ef 100644 --- a/module/network/HTTPDownload.py +++ b/module/network/HTTPDownload.py @@ -91,7 +91,7 @@ class HTTPDownload(): fo.seek(self.info.getChunkRange(i - 1)[1] + 1) #seek to beginning of chunk, to get rid of overlapping chunks fname = "%s.chunk%d" % (self.filename, i) fi = open(fname, "rb") - buf = 512 * 1024 + buf = 32 * 1024 while True: #copy in chunks, consumes less memory data = fi.read(buf) if not data: |