From 20c980d02b67b2a18b2ccfba1acdb56e5c3cfb81 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Mon, 16 Jul 2007 13:48:34 -0700
Subject: [PATCH] reduce MAX_SEGMENT_SIZE from 2MB to 1MB, to compensate for
 the large blocks that 3-of-10 produces

---
 src/allmydata/encode.py     | 2 +-
 src/allmydata/interfaces.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/allmydata/encode.py b/src/allmydata/encode.py
index 246bf8b4..ce470c95 100644
--- a/src/allmydata/encode.py
+++ b/src/allmydata/encode.py
@@ -73,7 +73,7 @@ class Encoder(object):
     NEEDED_SHARES = 25
     SHARES_OF_HAPPINESS = 75
     TOTAL_SHARES = 100
-    MAX_SEGMENT_SIZE = 2*MiB
+    MAX_SEGMENT_SIZE = 1*MiB
 
     def __init__(self, options={}):
         object.__init__(self)
diff --git a/src/allmydata/interfaces.py b/src/allmydata/interfaces.py
index 5462d001..2b4f4829 100644
--- a/src/allmydata/interfaces.py
+++ b/src/allmydata/interfaces.py
@@ -14,7 +14,7 @@ FURL = StringConstraint(1000)
 StorageIndex = StringConstraint(32)
 URI = StringConstraint(300) # kind of arbitrary
 MAX_BUCKETS = 200  # per peer
-ShareData = StringConstraint(700000) # 2MB segment / k=3 = 670kB
+ShareData = StringConstraint(400000) # 1MB segment / k=3 = 334kB
 URIExtensionData = StringConstraint(1000)
 
 class RIIntroducerClient(RemoteInterface):
-- 
2.45.2