diff options
author | Georg Brandl <georg@python.org> | 2005-12-26 23:07:46 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-12-26 23:07:46 (GMT) |
commit | 10141742d517144afe7fbba7e08ca5eddea70d69 (patch) | |
tree | a95ac6ab5e170266c0848251a073030b35b245f7 /Doc | |
parent | c0b24734e050fbddf6627be3f2dfb9860e8e5aeb (diff) | |
download | cpython-10141742d517144afe7fbba7e08ca5eddea70d69.zip cpython-10141742d517144afe7fbba7e08ca5eddea70d69.tar.gz cpython-10141742d517144afe7fbba7e08ca5eddea70d69.tar.bz2 |
Bug #756104: document that bufsize in socket.recv() should be small
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libsocket.tex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex index 51c4a2f..e3d9a92 100644 --- a/Doc/lib/libsocket.tex +++ b/Doc/lib/libsocket.tex @@ -557,6 +557,8 @@ the data received. The maximum amount of data to be received at once is specified by \var{bufsize}. See the \UNIX{} manual page \manpage{recv}{2} for the meaning of the optional argument \var{flags}; it defaults to zero. +\note{For best match with hardware and network realities, the value of +\var{bufsize} should be a relatively small power of 2, for example, 4096.} \end{methoddesc} \begin{methoddesc}[socket]{recvfrom}{bufsize\optional{, flags}} |