summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-06-05 06:28:55 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-06-05 06:28:55 (GMT)
commited0425c60abe1b746b1ca5b4039984d2ad6583c4 (patch)
treedba5a8819bf4f6cf6ef4561b3b03cdb777794ddb /Doc/library
parent889f914edb4253bdf4b475ed594199d67fcc08b7 (diff)
downloadcpython-ed0425c60abe1b746b1ca5b4039984d2ad6583c4.zip
cpython-ed0425c60abe1b746b1ca5b4039984d2ad6583c4.tar.gz
cpython-ed0425c60abe1b746b1ca5b4039984d2ad6583c4.tar.bz2
Issue #24291: Avoid WSGIRequestHandler doing partial writes
If the underlying send() method indicates a partial write, such as when the call is interrupted to handle a signal, the server would silently drop the remaining data. Also add deprecated support for SimpleHandler.stdout.write() doing partial writes.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/wsgiref.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/wsgiref.rst b/Doc/library/wsgiref.rst
index d0a8779..3253f48 100644
--- a/Doc/library/wsgiref.rst
+++ b/Doc/library/wsgiref.rst
@@ -515,6 +515,9 @@ input, output, and error streams.
streams are stored in the :attr:`stdin`, :attr:`stdout`, :attr:`stderr`, and
:attr:`environ` attributes.
+ The :meth:`~io.BufferedIOBase.write` method of *stdout* should write
+ each chunk in full, like :class:`io.BufferedIOBase`.
+
.. class:: BaseHandler()