Fixed an issue in the downloader causing a paused download not to be resumed. 5_3_x

Mon, 16 Dec 2013 19:31:57 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 16 Dec 2013 19:31:57 +0100
branch
5_3_x
changeset 3148
8a9764b8f0f3
parent 3134
7f14b0f809a9
child 3151
0b3b451320f6

Fixed an issue in the downloader causing a paused download not to be resumed.

Helpviewer/Download/DownloadItem.py file | annotate | diff | comparison | revisions
diff -r 7f14b0f809a9 -r 8a9764b8f0f3 Helpviewer/Download/DownloadItem.py
--- a/Helpviewer/Download/DownloadItem.py	Sun Dec 08 12:26:52 2013 +0100
+++ b/Helpviewer/Download/DownloadItem.py	Mon Dec 16 19:31:57 2013 +0100
@@ -133,7 +133,7 @@
         # attach to the reply object
         self.__url = self.__reply.url()
         self.__reply.setParent(self)
-        self.__reply.setReadBufferSize(0)
+        self.__reply.setReadBufferSize(16 * 1024 * 1024)
         self.__reply.readyRead[()].connect(self.__readyRead)
         self.__reply.error.connect(self.__networkError)
         self.__reply.downloadProgress.connect(self.__downloadProgress)
@@ -346,7 +346,8 @@
             self.__reply.setReadBufferSize(16 * 1024)
         else:
             self.__reply.readyRead[()].connect(self.__readyRead)
-            self.__reply.setReadBufferSize(0)
+            self.__reply.setReadBufferSize(16 * 1024 * 1024)
+            self.__readyRead()
     
     @pyqtSlot()
     def on_stopButton_clicked(self):

eric ide

mercurial