[Python-checkins] commit of r41818 - python/trunk/Doc/lib/libsocket.tex

reinhold.birkenfeld python-checkins at python.org
Tue Dec 27 00:07:46 CET 2005


Author: reinhold.birkenfeld
Date: Tue Dec 27 00:07:46 2005
New Revision: 41818

Modified:
   python/trunk/Doc/lib/libsocket.tex
Log:
Bug #756104: document that bufsize in socket.recv() should be small



Modified: python/trunk/Doc/lib/libsocket.tex
==============================================================================
--- python/trunk/Doc/lib/libsocket.tex	(original)
+++ python/trunk/Doc/lib/libsocket.tex	Tue Dec 27 00:07:46 2005
@@ -557,6 +557,8 @@
 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}}


More information about the Python-checkins mailing list