~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/remote.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-12-02 01:57:00 UTC
  • mfrom: (3876.1.2 303538_max_readv)
  • Revision ID: pqm@pqm.ubuntu.com-20081202015700-3mc9dola31w7h5h4
(jam) Fix bug #303538 by capping readv sections to 100MB

Show diffs side-by-side

added added

removed removed

Lines of Context:
323
323
        sorted_offsets = sorted(offsets)
324
324
        coalesced = list(self._coalesce_offsets(sorted_offsets,
325
325
                               limit=self._max_readv_combine,
326
 
                               fudge_factor=self._bytes_to_read_before_seek))
 
326
                               fudge_factor=self._bytes_to_read_before_seek,
 
327
                               max_size=self._max_readv_bytes))
327
328
 
328
329
        # now that we've coallesced things, avoid making enormous requests
329
330
        requests = []