[Python-checkins] cpython (2.7): clarify recv* are blocking operations; thanks to Chris Kogelnik from docs@
sandro.tosi
python-checkins at python.org
Sat Jan 7 17:59:13 CET 2012
http://hg.python.org/cpython/rev/ae95154e0624
changeset: 74290:ae95154e0624
branch: 2.7
parent: 74285:f0666e56a552
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Sat Jan 07 17:56:43 2012 +0100
summary:
clarify recv* are blocking operations; thanks to Chris Kogelnik from docs@
files:
Doc/library/multiprocessing.rst | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -727,7 +727,8 @@
.. method:: recv()
Return an object sent from the other end of the connection using
- :meth:`send`. Raises :exc:`EOFError` if there is nothing left to receive
+ :meth:`send`. Blocks until there its something to receive. Raises
+ :exc:`EOFError` if there is nothing left to receive
and the other end was closed.
.. method:: fileno()
@@ -761,7 +762,8 @@
.. method:: recv_bytes([maxlength])
Return a complete message of byte data sent from the other end of the
- connection as a string. Raises :exc:`EOFError` if there is nothing left
+ connection as a string. Blocks until there is something to receive.
+ Raises :exc:`EOFError` if there is nothing left
to receive and the other end has closed.
If *maxlength* is specified and the message is longer than *maxlength*
@@ -771,7 +773,8 @@
.. method:: recv_bytes_into(buffer[, offset])
Read into *buffer* a complete message of byte data sent from the other end
- of the connection and return the number of bytes in the message. Raises
+ of the connection and return the number of bytes in the message. Blocks
+ until there is something to receive. Raises
:exc:`EOFError` if there is nothing left to receive and the other end was
closed.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list