/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/smart/medium.py

  • Committer: Andrew Bennetts
  • Date: 2008-02-06 03:52:25 UTC
  • mto: This revision was merged to the branch mainline in revision 3220.
  • Revision ID: andrew.bennetts@canonical.com-20080206035225-q572lt8uhrpl22dj
Recover (by reconnecting) if the server turns out not to understand the new requests in 1.2 that send bodies.

Show diffs side-by-side

added added

removed removed

Lines of Context:
386
386
 
387
387
    def __init__(self):
388
388
        self._current_request = None
 
389
        # Be optimistic: we assume the remote end can accept new remote
 
390
        # requests until we get an error saying otherwise.  (1.2 adds some
 
391
        # requests that send bodies, which confuses older servers.)
 
392
        self._remote_is_at_least_1_2 = True
389
393
 
390
394
    def accept_bytes(self, bytes):
391
395
        self._accept_bytes(bytes)