summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na92@gmail.com>2020-01-11 17:39:15 (GMT)
committerVictor Stinner <vstinner@python.org>2020-01-11 17:39:15 (GMT)
commit1b335ae281631a12201fdec29b3c55d97166fc06 (patch)
treee067d97221416877e47fad06e6a14cded864b468 /Misc
parent136735c1a2efb320e4cbb64b40f1191228745b39 (diff)
downloadcpython-1b335ae281631a12201fdec29b3c55d97166fc06.zip
cpython-1b335ae281631a12201fdec29b3c55d97166fc06.tar.gz
cpython-1b335ae281631a12201fdec29b3c55d97166fc06.tar.bz2
bpo-39259: nntplib.NNTP/NNTP_SSL now reject timeout = 0 (GH-17936)
nntplib.NNTP and nntplib.NNTP_SSL now raise a ValueError if the given timeout for their constructor is zero to prevent the creation of a non-blocking socket.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-01-11-00-32-45.bpo-39259._S5VjC.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-01-11-00-32-45.bpo-39259._S5VjC.rst b/Misc/NEWS.d/next/Library/2020-01-11-00-32-45.bpo-39259._S5VjC.rst
new file mode 100644
index 0000000..a454572
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-01-11-00-32-45.bpo-39259._S5VjC.rst
@@ -0,0 +1,3 @@
+:class:`~nntplib.NNTP` and :class:`~nntplib.NNTP_SSL` now raise a
+:class:`ValueError` if the given timeout for their constructor is zero to
+prevent the creation of a non-blocking socket. Patch by Dong-hee Na.