[Pkg-owncloud-commits] [owncloud-client] 22/27: propagator_qnam: Limit the HTTP buffer size when downloading

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Jul 29 16:23:59 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 3d0c0097190f488e23a0575419e441f528bc09e5
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Thu Jul 24 15:41:09 2014 +0200

    propagator_qnam: Limit the HTTP buffer size when downloading
    
    Otherwise the buffer might fill up too quickly and get too large and consume
    too much memory which could lead to crash in extreme cases
    
    Should fix issue #1974
---
 src/mirall/propagator_qnam.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mirall/propagator_qnam.cpp b/src/mirall/propagator_qnam.cpp
index 73e1fbf..72668c0 100644
--- a/src/mirall/propagator_qnam.cpp
+++ b/src/mirall/propagator_qnam.cpp
@@ -402,6 +402,7 @@ void GETFileJob::start() {
 
     setReply(davRequest("GET", path(), req));
     setupConnections(reply());
+    reply()->setReadBufferSize(128 * 1024);
 
     if( reply()->error() != QNetworkReply::NoError ) {
         qWarning() << Q_FUNC_INFO << " Network error: " << reply()->errorString();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list