﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	launchpad_bug
3915	Size passed to IStorageServer.allocate_bytes is bigger than actual share size	itamarst	GitHub <noreply@…>	"`immutable/layout.py` calculates share size using the _maximum_ possible URI extension size. The actual share has a specific, typically smaller URI extension size (as generated in `immutable/encode.py`). So `IBucketWriter.close()` is called after sending fewer bytes than were claimed in `allocate_buckets()`.

For Foolscap this works, however ugly it is. For current HTTP storage protocol, this does not.

Instead of fixing the HTTP protocol to have a notion of ""closing early"", seems better to just fix the size calculation so it uses the actual size of the URI extension.

Note that there may be additional sources of discrepancy :("	defect	closed	normal	HTTP Storage Protocol	unknown	n/a	fixed			
