[Python-checkins] commit of r41819 - python/branches/release24-maint/Doc/lib/libsocket.tex

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


Author: reinhold.birkenfeld
Date: Tue Dec 27 00:07:52 2005
New Revision: 41819

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



Modified: python/branches/release24-maint/Doc/lib/libsocket.tex
==============================================================================
--- python/branches/release24-maint/Doc/lib/libsocket.tex	(original)
+++ python/branches/release24-maint/Doc/lib/libsocket.tex	Tue Dec 27 00:07:52 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