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
ctypes
curses
dbm
distutils
email
encodings
html
http
idlelib
json
lib2to3
logging
msilib
multiprocessing
plat-aix4
plat-atheos
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-freebsd8
plat-generic
plat-linux2
plat-netbsd1
plat-next3
plat-os2emx
plat-sunos5
plat-unixware7
site-packages
sqlite3
test
tkinter
urllib
wsgiref
xml
xmlrpc
__future__.py -rw-r--r-- 4.3 KB
__phello__.foo.py -rw-r--r-- 64 bytes
_abcoll.py -rw-r--r-- 14.7 KB
_dummy_thread.py -rw-r--r-- 4.3 KB
_markupbase.py -rw-r--r-- 14.0 KB
_strptime.py -rw-r--r-- 19.3 KB
_threading_local.py -rw-r--r-- 6.8 KB
_weakrefset.py -rw-r--r-- 4.1 KB
abc.py -rw-r--r-- 6.6 KB
aifc.py -rw-r--r-- 30.1 KB
antigravity.py -rw-r--r-- 60 bytes
ast.py -rw-r--r-- 11.1 KB
asynchat.py -rw-r--r-- 11.8 KB
asyncore.py -rw-r--r-- 18.8 KB
base64.py -rwxr-xr-x 13.0 KB
bdb.py -rw-r--r-- 19.9 KB
binhex.py -rw-r--r-- 13.6 KB
bisect.py -rw-r--r-- 2.6 KB
build_class.py -rw-r--r-- 0 bytes
cProfile.py -rwxr-xr-x 6.2 KB
calendar.py -rw-r--r-- 22.1 KB
cgi.py -rwxr-xr-x 29.2 KB
cgitb.py -rw-r--r-- 11.7 KB
chunk.py -rw-r--r-- 5.3 KB
cmd.py -rw-r--r-- 14.5 KB
code.py -rw-r--r-- 9.4 KB
codecs.py -rw-r--r-- 34.0 KB
codeop.py -rw-r--r-- 5.9 KB
collections.py -rw-r--r-- 17.0 KB
colorsys.py -rw-r--r-- 3.4 KB
compileall.py -rw-r--r-- 5.5 KB
configparser.py -rw-r--r-- 23.9 KB
contextlib.py -rw-r--r-- 4.1 KB
copy.py -rw-r--r-- 9.6 KB
copyreg.py -rw-r--r-- 6.5 KB
csv.py -rw-r--r-- 14.9 KB
decimal.py -rw-r--r-- 193.9 KB
difflib.py -rw-r--r-- 79.2 KB
dis.py -rw-r--r-- 8.1 KB
doctest.py -rw-r--r-- 95.7 KB
dummy_threading.py -rw-r--r-- 2.7 KB
filecmp.py -rw-r--r-- 9.3 KB
fileinput.py -rw-r--r-- 13.9 KB
fnmatch.py -rw-r--r-- 3.3 KB
formatter.py -rw-r--r-- 14.6 KB
fractions.py -rwxr-xr-x 20.0 KB
ftplib.py -rw-r--r-- 28.1 KB
functools.py -rw-r--r-- 2.1 KB
genericpath.py -rw-r--r-- 3.0 KB
getopt.py -rw-r--r-- 7.1 KB
getpass.py -rw-r--r-- 5.1 KB
gettext.py -rw-r--r-- 17.6 KB
glob.py -rw-r--r-- 2.2 KB
gzip.py -rw-r--r-- 16.9 KB
hashlib.py -rw-r--r-- 4.8 KB
heapq.py -rw-r--r-- 15.3 KB
hmac.py -rw-r--r-- 4.7 KB
imaplib.py -rw-r--r-- 45.3 KB
imghdr.py -rw-r--r-- 3.4 KB
inspect.py -rw-r--r-- 38.8 KB
io.py -rw-r--r-- 72.5 KB
keyword.py -rwxr-xr-x 2.0 KB
linecache.py -rw-r--r-- 4.2 KB
locale.py -rw-r--r-- 80.6 KB
macpath.py -rw-r--r-- 5.1 KB
macurl2path.py -rw-r--r-- 3.2 KB
mailbox.py -rwxr-xr-x 68.2 KB
mailcap.py -rw-r--r-- 7.3 KB
mimetypes.py -rw-r--r-- 18.4 KB
modulefinder.py -rw-r--r-- 23.6 KB
netrc.py -rw-r--r-- 4.1 KB
nntplib.py -rw-r--r-- 20.6 KB
ntpath.py -rw-r--r-- 18.0 KB
nturl2path.py -rw-r--r-- 2.2 KB
numbers.py -rw-r--r-- 10.0 KB
opcode.py -rw-r--r-- 4.7 KB
optparse.py -rw-r--r-- 58.4 KB
os.py -rw-r--r-- 21.0 KB
os2emxpath.py -rw-r--r-- 4.4 KB
pdb.doc -rw-r--r-- 7.7 KB
pdb.py -rwxr-xr-x 43.7 KB
pickle.py -rw-r--r-- 43.0 KB
pickletools.py -rw-r--r-- 74.0 KB
pipes.py -rw-r--r-- 9.1 KB
pkgutil.py -rw-r--r-- 19.4 KB
platform.py -rwxr-xr-x 48.3 KB
plistlib.py -rw-r--r-- 13.4 KB
poplib.py -rw-r--r-- 10.1 KB
posixpath.py -rw-r--r-- 12.9 KB
pprint.py -rw-r--r-- 11.6 KB
profile.py -rwxr-xr-x 23.1 KB
pstats.py -rw-r--r-- 25.9 KB
pty.py -rw-r--r-- 4.8 KB
py_compile.py -rw-r--r-- 6.0 KB
pyclbr.py -rw-r--r-- 12.9 KB
pydoc.py -rwxr-xr-x 87.6 KB
pydoc_topics.py -rw-r--r-- 360.8 KB
queue.py -rw-r--r-- 8.4 KB
quopri.py -rwxr-xr-x 7.1 KB
random.py -rw-r--r-- 25.0 KB
re.py -rw-r--r-- 13.8 KB
reprlib.py -rw-r--r-- 4.0 KB
rlcompleter.py -rw-r--r-- 5.5 KB
runpy.py -rwxr-xr-x 5.1 KB
sched.py -rw-r--r-- 5.0 KB
shelve.py -rw-r--r-- 7.8 KB
shlex.py -rw-r--r-- 10.8 KB
shutil.py -rw-r--r-- 8.2 KB
site.py -rw-r--r-- 18.2 KB
smtpd.py -rwxr-xr-x 17.7 KB
smtplib.py -rwxr-xr-x 29.8 KB
sndhdr.py -rw-r--r-- 6.1 KB
socket.py -rw-r--r-- 9.4 KB
socketserver.py -rw-r--r-- 21.2 KB
sre_compile.py -rw-r--r-- 15.9 KB
sre_constants.py -rw-r--r-- 7.0 KB
sre_parse.py -rw-r--r-- 27.0 KB
ssl.py -rw-r--r-- 14.9 KB
stat.py -rw-r--r-- 1.7 KB
string.py -rw-r--r-- 10.2 KB
stringprep.py -rw-r--r-- 12.6 KB
struct.py -rw-r--r-- 54 bytes
subprocess.py -rw-r--r-- 44.7 KB
sunau.py -rw-r--r-- 16.1 KB
symbol.py -rwxr-xr-x 2.0 KB
symtable.py -rw-r--r-- 7.1 KB
tabnanny.py -rwxr-xr-x 11.1 KB
tarfile.py -rw-r--r-- 83.0 KB
telnetlib.py -rw-r--r-- 21.0 KB
tempfile.py -rw-r--r-- 18.3 KB
textwrap.py -rw-r--r-- 15.3 KB
this.py -rw-r--r-- 1003 bytes
threading.py -rw-r--r-- 30.1 KB
timeit.py -rw-r--r-- 11.7 KB
token.py -rwxr-xr-x 2.9 KB
tokenize.py -rw-r--r-- 17.4 KB
trace.py -rw-r--r-- 29.2 KB
traceback.py -rw-r--r-- 11.6 KB
tty.py -rw-r--r-- 879 bytes
turtle.py -rw-r--r-- 136.3 KB
types.py -rw-r--r-- 1.1 KB
unittest.py -rw-r--r-- 30.0 KB
uu.py -rwxr-xr-x 6.0 KB
uuid.py -rw-r--r-- 20.5 KB
warnings.py -rw-r--r-- 12.6 KB
wave.py -rw-r--r-- 17.5 KB
weakref.py -rw-r--r-- 9.2 KB
webbrowser.py -rw-r--r-- 20.5 KB
wsgiref.egg-info -rw-r--r-- 187 bytes
xdrlib.py -rw-r--r-- 5.3 KB
zipfile.py -rw-r--r-- 51.6 KB

back to top