summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcatern <catern@catern.com>2018-08-09 15:38:13 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2018-08-09 15:38:13 -0400
commitb2777a465b669fb647dbac0a92919cb05458707b (patch)
tree13f38eb0b990b16ee1f396baa1094cb4bf1feefc
parent0f82c1f04f6710e2f182582068f186c4fffc3f9b (diff)
downloadpyopenssl-git-b2777a465b669fb647dbac0a92919cb05458707b.tar.gz
fix wantWriteError to error even with big socket buffers (#782)
My system apparently has larger socket buffers than this test assumes, so it fails. (Debian 9, Linux 4.16, Python 3.7) So let's increase the size of the buffers such that it works for me. This was the smallest power of 2 that worked.
-rw-r--r--tests/test_ssl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index 0831904..fbf0760 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -2632,7 +2632,7 @@ class TestConnection(object):
# always happen on all platforms (FreeBSD and OS X particular) for the
# very last bit of available buffer space.
msg = b"x"
- for i in range(1024 * 1024 * 4):
+ for i in range(1024 * 1024 * 64):
try:
client_socket.send(msg)
except error as e: