From 09ff5af99c179b02442beed1f9bd424bae93a2e2 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Tue, 11 Sep 2007 11:29:18 -0700 Subject: [PATCH] loosen constraint on share data size --- src/allmydata/interfaces.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/allmydata/interfaces.py b/src/allmydata/interfaces.py index e5b08aa5..993cbd12 100644 --- a/src/allmydata/interfaces.py +++ b/src/allmydata/interfaces.py @@ -15,7 +15,9 @@ StorageIndex = StringConstraint(16) URI = StringConstraint(300) # kind of arbitrary DirnodeURI = StringConstraint(300, regexp=r'^URI:DIR(-RO)?:pb://[a-z0-9]+@[^/]+/[^:]+:[a-z0-9]+$') MAX_BUCKETS = 200 # per peer -ShareData = StringConstraint(400000) # 1MB segment / k=3 = 334kB + +# MAX_SEGMENT_SIZE in encode.py is 1 MiB (this constraint allows k = 1) +ShareData = StringConstraint(2**20) URIExtensionData = StringConstraint(1000) LeaseRenewSecret = Hash # used to protect bucket lease renewal requests LeaseCancelSecret = Hash # used to protect bucket lease cancellation requests -- 2.45.2