~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.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:
797
797
        cur = _CoalescedOffset(None, None, [])
798
798
        coalesced_offsets = []
799
799
 
 
800
        if max_size <= 0:
 
801
            # 'unlimited', but we actually take this to mean 100MB buffer limit
 
802
            max_size = 100*1024*1024
 
803
 
800
804
        for start, size in offsets:
801
805
            end = start + size
802
806
            if (last_end is not None