Staging
v0.8.1
https://github.com/python/cpython
Revision 1742e401c4d76754e901e5cb2e4e9db86964999c authored by Benjamin Peterson on 30 November 2008, 22:15:29 UTC, committed by Benjamin Peterson on 30 November 2008, 22:15:29 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67442 | jeremy.hylton | 2008-11-28 19:09:35 -0600 (Fri, 28 Nov 2008) | 18 lines

  Send HTTP headers and message body in a single send() call.

  This change addresses part of issue 4336.

  Change endheaders() to take an optional message_body argument
  that is sent along with the headers.  Change xmlrpclib and
  httplib's other methods to use this new interface.

  It is more efficient to make a single send() call, which should
  get the entire client request into one packet (assuming it is
  smaller than the MTU) and will avoid the long pause for delayed
  ack following timeout.

  Also:
  - Add a comment about the buffer size for makefile().
  - Extract _set_content_length() method and fix whitespace issues there.
........
1 parent 45a6b9f
History
Tip revision: 1742e401c4d76754e901e5cb2e4e9db86964999c authored by Benjamin Peterson on 30 November 2008, 22:15:29 UTC
Merged revisions 67442 via svnmerge from
Tip revision: 1742e40
File Mode Size
Python-ast.c -rw-r--r-- 258.6 KB
_warnings.c -rw-r--r-- 25.3 KB
asdl.c -rw-r--r-- 1.2 KB
ast.c -rw-r--r-- 100.0 KB
atof.c -rw-r--r-- 815 bytes
bltinmodule.c -rw-r--r-- 57.0 KB
ceval.c -rw-r--r-- 94.1 KB
codecs.c -rw-r--r-- 20.3 KB
compile.c -rw-r--r-- 102.2 KB
dup2.c -rw-r--r-- 685 bytes
dynload_aix.c -rw-r--r-- 4.9 KB
dynload_atheos.c -rw-r--r-- 1.0 KB
dynload_dl.c -rw-r--r-- 564 bytes
dynload_hpux.c -rw-r--r-- 1.3 KB
dynload_next.c -rw-r--r-- 3.4 KB
dynload_os2.c -rw-r--r-- 1023 bytes
dynload_shlib.c -rw-r--r-- 3.2 KB
dynload_stub.c -rw-r--r-- 202 bytes
dynload_win.c -rw-r--r-- 7.5 KB
errors.c -rw-r--r-- 20.2 KB
formatter_unicode.c -rw-r--r-- 454 bytes
frozen.c -rw-r--r-- 1.3 KB
frozenmain.c -rw-r--r-- 2.4 KB
future.c -rw-r--r-- 3.5 KB
getargs.c -rw-r--r-- 45.5 KB
getcompiler.c -rw-r--r-- 366 bytes
getcopyright.c -rw-r--r-- 503 bytes
getcwd.c -rw-r--r-- 1.4 KB
getmtime.c -rw-r--r-- 388 bytes
getopt.c -rw-r--r-- 3.1 KB
getplatform.c -rw-r--r-- 130 bytes
getversion.c -rw-r--r-- 290 bytes
graminit.c -rw-r--r-- 35.9 KB
import.c -rw-r--r-- 83.6 KB
importdl.c -rw-r--r-- 2.2 KB
importdl.h -rw-r--r-- 990 bytes
marshal.c -rw-r--r-- 25.6 KB
modsupport.c -rw-r--r-- 11.8 KB
mysnprintf.c -rw-r--r-- 3.1 KB
mystrtoul.c -rw-r--r-- 6.5 KB
peephole.c -rw-r--r-- 17.8 KB
pyarena.c -rw-r--r-- 5.8 KB
pyfpe.c -rw-r--r-- 623 bytes
pymath.c -rw-r--r-- 5.3 KB
pystate.c -rw-r--r-- 18.3 KB
pystrcmp.c -rw-r--r-- 562 bytes
pystrtod.c -rw-r--r-- 13.7 KB
pythonrun.c -rw-r--r-- 51.8 KB
sigcheck.c -rw-r--r-- 529 bytes
strdup.c -rw-r--r-- 256 bytes
strtod.c -rw-r--r-- 5.1 KB
structmember.c -rw-r--r-- 6.7 KB
symtable.c -rw-r--r-- 43.1 KB
sysmodule.c -rw-r--r-- 41.5 KB
thread.c -rw-r--r-- 10.7 KB
thread_atheos.h -rw-r--r-- 6.0 KB
thread_cthread.h -rw-r--r-- 2.7 KB
thread_foobar.h -rw-r--r-- 1.9 KB
thread_lwp.h -rw-r--r-- 3.1 KB
thread_nt.h -rw-r--r-- 6.6 KB
thread_os2.h -rw-r--r-- 5.6 KB
thread_pth.h -rw-r--r-- 5.2 KB
thread_pthread.h -rw-r--r-- 12.1 KB
thread_sgi.h -rw-r--r-- 9.4 KB
thread_solaris.h -rw-r--r-- 3.0 KB
thread_wince.h -rw-r--r-- 4.0 KB
traceback.c -rw-r--r-- 8.3 KB

back to top