~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_transport.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-10-23 15:13:46 UTC
  • mfrom: (2091.2.4 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20061023151346-d91d5ad53c0e14a6
(Martin Pool) Avoid MSG_WAITALL as it doesn't exist on all platforms

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
        """
98
98
        def _receive_bytes_on_server():
99
99
            connection, address = sock.accept()
100
 
            bytes.append(connection.recv(3, socket.MSG_WAITALL))
 
100
            bytes.append(osutils.recv_all(connection, 3))
101
101
            connection.close()
102
102
        t = threading.Thread(target=_receive_bytes_on_server)
103
103
        t.start()