~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_transport.py

  • Committer: Martin Pool
  • Date: 2006-10-21 02:33:37 UTC
  • mto: (2091.2.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2092.
  • Revision ID: mbp@sourcefrog.net-20061021023337-e517eaadd87fc778
Avoid MSG_WAITALL as it doesn't work on Windows

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()