From b2777a465b669fb647dbac0a92919cb05458707b Mon Sep 17 00:00:00 2001 From: catern Date: Thu, 9 Aug 2018 15:38:13 -0400 Subject: 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. --- tests/test_ssl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.1