upload.py: add some notes: extensions are more like 419 than 1000 bytes

This commit is contained in:
Brian Warner 2008-04-15 11:14:58 -07:00
parent f153dafaa0
commit aebd80feec

View File

@ -58,6 +58,8 @@ class UploadResults(Copyable, RemoteCopy):
# the extension changes size, we can change EXTENSION_SIZE to # the extension changes size, we can change EXTENSION_SIZE to
# allocate a more accurate amount of space. # allocate a more accurate amount of space.
EXTENSION_SIZE = 1000 EXTENSION_SIZE = 1000
# TODO: actual extensions are closer to 419 bytes, so we can probably lower
# this.
class PeerTracker: class PeerTracker:
def __init__(self, peerid, storage_server, def __init__(self, peerid, storage_server,