mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Bug #756104: document that bufsize in socket.recv() should be small
This commit is contained in:
parent
c0b24734e0
commit
10141742d5
1 changed files with 2 additions and 0 deletions
|
@ -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}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue