~myers-1/pyopenssl/npn

« back to all changes in this revision

Viewing changes to OpenSSL/test/test_ssl.py

  • Committer: Jean-Paul Calderone
  • Date: 2010-09-17 00:05:26 UTC
  • mfrom: (134.1.3 win32-test_long)
  • Revision ID: exarkun@divmod.com-20100917000526-yi16b4hndgzbeue9
Tweak the size of the message used in test_long so it can pass on Windows

Show diffs side-by-side

added added

removed removed

Lines of Context:
1096
1096
        it even if this requires multiple calls of an underlying write function.
1097
1097
        """
1098
1098
        server, client = self._loopback()
1099
 
        message ='x' * 1024 * 128 + 'y'
 
1099
        # Should be enough, underlying SSL_write should only do 16k at a time.
 
1100
        # On Windows, after 32k of bytes the write will block (forever - because
 
1101
        # no one is yet reading).
 
1102
        message ='x' * (1024 * 32 - 1) + 'y'
1100
1103
        server.sendall(message)
1101
1104
        accum = []
1102
1105
        received = 0