Back to comment #1, wouldn't this implementation solve the bug?

def write(self, data):
    """Transport API to capture bytes written."""
    chunk_size = 1024*1024
    data_len = len(data)
    index = 0
    while index < data_len:
        if self.factory.client is self:
            self.factory.registerWritten(len(data[index:index+chunk_size]))
        StorageClient.write(self, data[index:index + chunk_size])
        index += chunk_size

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to a duplicate bug report (634013).
https://bugs.launchpad.net/bugs/720707

Title:
  Bandwidth limit is not correctly enforced: Transmission delays are
  inserted between data chunk writes (of arbitrary sizes)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntuone-storage-protocol/+bug/720707/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to