summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2019-04-09 02:42:06 (GMT)
committerGitHub <noreply@github.com>2019-04-09 02:42:06 (GMT)
commit8702b67dad62a9084f6c1823dce10653743667c8 (patch)
treee43d21d01315d3543754a3e43119e5158d6f5dbd /Misc
parent79b5d29041bd85ea3baa050b3fa2481344ea35c9 (diff)
downloadcpython-8702b67dad62a9084f6c1823dce10653743667c8.zip
cpython-8702b67dad62a9084f6c1823dce10653743667c8.tar.gz
cpython-8702b67dad62a9084f6c1823dce10653743667c8.tar.bz2
BPO-17561: set create_server backlog default to None (GH-12735)
It turns out doing socket.listen(0) does not equal to "choose a reasonable default". It actually means "set backlog to 0". As such set backlog=None as the default for socket.create_server. Fixes the following BB failures: https://github.com/python/cpython/pull/11784#issuecomment-481036369 Ref. BPO-1756, GH-11784.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-04-09-04-08-46.bpo-17561.hOhVnh.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-04-09-04-08-46.bpo-17561.hOhVnh.rst b/Misc/NEWS.d/next/Library/2019-04-09-04-08-46.bpo-17561.hOhVnh.rst
new file mode 100644
index 0000000..e281c22
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-04-09-04-08-46.bpo-17561.hOhVnh.rst
@@ -0,0 +1 @@
+Set backlog=None as the default for socket.create_server.