~ubuntu-branches/ubuntu/lucid/ubuntuone-storage-protocol/lucid-security

« back to all changes in this revision

Viewing changes to ubuntuone/storageprotocol/request.py

  • Committer: Bazaar Package Importer
  • Author(s): Rodney Dawes
  • Date: 2009-07-16 16:30:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090716163000-6p5l3hs6fkv11gie
Tags: 0.90.4-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
SIZE_FMT = "!I"
45
45
SIZE_FMT_SIZE = struct.calcsize(SIZE_FMT)
46
46
MAX_MESSAGE_SIZE = 2**16
47
 
UNKNOWN_HASH = ""
 
47
UNKNOWN_HASH = "unknown"
48
48
# XXX: lucio.torre: wild guess on payload size, fix with something better
49
49
MAX_PAYLOAD_SIZE = MAX_MESSAGE_SIZE-300
50
50
 
133
133
                request.error(reason)
134
134
            except defer.AlreadyCalledError:
135
135
                # cancel may already have error-ed the request
136
 
                pass
 
136
                continue
137
137
 
138
138
    def addProducer(self, who):
139
139
        """add self as a producer as we have new requests."""