diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-11-30 22:15:29 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-11-30 22:15:29 (GMT) |
commit | 1742e401c4d76754e901e5cb2e4e9db86964999c (patch) | |
tree | fdb4555d062ff312f07bee7f8df086e0b8f9b654 /Doc/includes | |
parent | 45a6b9f7e57b96d7489a61a2ca41dd60fa3f6c0a (diff) | |
download | cpython-1742e401c4d76754e901e5cb2e4e9db86964999c.zip cpython-1742e401c4d76754e901e5cb2e4e9db86964999c.tar.gz cpython-1742e401c4d76754e901e5cb2e4e9db86964999c.tar.bz2 |
Merged revisions 67442 via svnmerge from
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.
........
Diffstat (limited to 'Doc/includes')
0 files changed, 0 insertions, 0 deletions