From 02dceb31f77f0812c76334a1758631c7cf9544a3 Mon Sep 17 00:00:00 2001
From: David Kalnischkies <kalnischkies@gmail.com>
Date: Sat, 2 Jan 2010 00:22:31 +0100
Subject: add configuration PDiffs::Limit-options (FileLimit and SizeLimit) to
 not download too many or too big patches (Closes: #554349)

---
 doc/examples/configure-index | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'doc/examples')

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 
   {
-- 
cgit v1.2.3