summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-01-02 00:22:31 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-01-02 00:22:31 +0100
commit02dceb31f77f0812c76334a1758631c7cf9544a3 (patch)
treec3a10a2dd01c78eb6ff4c08e60d546ecea7b420c /doc/examples
parent806969420fa6a12471b237eccd21edaff4a33767 (diff)
add configuration PDiffs::Limit-options (FileLimit and SizeLimit) to
not download too many or too big patches (Closes: #554349)
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/configure-index5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/examples/configure-index b/doc/examples/configure-index
index 0a20e8f2b..be461aaad 100644
--- a/doc/examples/configure-index
+++ b/doc/examples/configure-index
@@ -176,7 +176,10 @@ Acquire
Source-Symlinks "true";
PDiffs "true"; // try to get the IndexFile diffs
-
+ PDiffs::FileLimit "4"; // don't use diffs if we would need more than 4 diffs
+ PDiffs::SizeLimit "50"; // don't use diffs if size of all patches excess
+ // 50% of the size of the original file
+
// HTTP method configuration
http
{