summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSandro Tosi <sandro.tosi@gmail.com>2012-01-07 16:56:58 (GMT)
committerSandro Tosi <sandro.tosi@gmail.com>2012-01-07 16:56:58 (GMT)
commitb52e7a9a364096d355d32927c537389cfc10a5db (patch)
tree657e5e1eca237eb8381c6e68cd5bbeb57950974c /Doc/library
parent441ae043df1f56af879840ed6d0e29188ba52ee5 (diff)
downloadcpython-b52e7a9a364096d355d32927c537389cfc10a5db.zip
cpython-b52e7a9a364096d355d32927c537389cfc10a5db.tar.gz
cpython-b52e7a9a364096d355d32927c537389cfc10a5db.tar.bz2
clarify recv* are blocking operations; thanks to Chris Kogelnik from docs@
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/multiprocessing.rst9
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index 1ae7419..3d83114 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -727,7 +727,8 @@ Connection objects are usually created using :func:`Pipe` -- see also
.. 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 @@ Connection objects are usually created using :func:`Pipe` -- see also
.. 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 @@ Connection objects are usually created using :func:`Pipe` -- see also
.. 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.