/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-01-04 03:12:11 UTC
  • mfrom: (3164 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3320.
  • Revision ID: andrew.bennetts@canonical.com-20080104031211-wy4uxo2j4elvip1j
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
from bzrlib import (
32
32
    errors,
 
33
    osutils,
33
34
    symbol_versioning,
34
35
    )
35
36
from bzrlib.smart.protocol import (
180
181
        self.finished = True
181
182
 
182
183
    def _write_out(self, bytes):
183
 
        self.socket.sendall(bytes)
 
184
        osutils.send_all(self.socket, bytes)
184
185
 
185
186
 
186
187
class SmartServerPipeStreamMedium(SmartServerStreamMedium):
527
528
    def _accept_bytes(self, bytes):
528
529
        """See SmartClientMedium.accept_bytes."""
529
530
        self._ensure_connection()
530
 
        self._socket.sendall(bytes)
 
531
        osutils.send_all(self._socket, bytes)
531
532
 
532
533
    def disconnect(self):
533
534
        """See SmartClientMedium.disconnect()."""