summaryrefslogtreecommitdiffstats
path: root/Lib/test/support
diff options
context:
space:
mode:
authorCharles-François Natali <cf.natali@gmail.com>2013-08-29 17:27:17 (GMT)
committerCharles-François Natali <cf.natali@gmail.com>2013-08-29 17:27:17 (GMT)
commitf25f80c8391b49779188fde6f8863bc2948ab101 (patch)
treeacd4d822967d7c9893d4ba2340c3314163a54d3a /Lib/test/support
parente0d25ce1fe1fe4379776c6bbb12981aabda865fd (diff)
parent74b7408604a8f7c340ee1a13d83c337648c92afe (diff)
downloadcpython-f25f80c8391b49779188fde6f8863bc2948ab101.zip
cpython-f25f80c8391b49779188fde6f8863bc2948ab101.tar.gz
cpython-f25f80c8391b49779188fde6f8863bc2948ab101.tar.bz2
Merge.
Diffstat (limited to 'Lib/test/support')
-rw-r--r--Lib/test/support/__init__.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 03dc6b6..39089cd 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -604,8 +604,14 @@ IPV6_ENABLED = _is_ipv6_enabled()
# Windows limit seems to be around 512 B, and many Unix kernels have a
# 64 KiB pipe buffer size or 16 * PAGE_SIZE: take a few megs to be sure.
# (see issue #17835 for a discussion of this number).
-PIPE_MAX_SIZE = 4 *1024 * 1024 + 1
-
+PIPE_MAX_SIZE = 4 * 1024 * 1024 + 1
+
+# A constant likely larger than the underlying OS socket buffer size, to make
+# writes blocking.
+# The socket buffer sizes can usually be tuned system-wide (e.g. through sysctl
+# on Linux), or on a per-socket basis (SO_SNDBUF/SO_RCVBUF). See issue #18643
+# for a discussion of this number).
+SOCK_MAX_SIZE = 16 * 1024 * 1024 + 1
# decorator for skipping tests on non-IEEE 754 platforms
requires_IEEE_754 = unittest.skipUnless(