We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fee0ba commit 2f7eb2fCopy full SHA for 2f7eb2f
distributed/comm/tcp.py
@@ -45,7 +45,10 @@
45
46
# Workaround for OpenSSL 1.0.2 (can drop with OpenSSL 1.1.1)
47
# ref: https://bugs.python.org/issue42853
48
-OPENSSL_MAX_CHUNKSIZE = 256 ** ctypes.sizeof(ctypes.c_int) // 2 - 1
+if sys.version_info < (3, 10):
49
+ OPENSSL_MAX_CHUNKSIZE = 256 ** ctypes.sizeof(ctypes.c_int) // 2 - 1
50
+else:
51
+ OPENSSL_MAX_CHUNKSIZE = 256 ** ctypes.sizeof(ctypes.c_size_t) - 1
52
53
MAX_BUFFER_SIZE = MEMORY_LIMIT / 2
54
0 commit comments