summaryrefslogtreecommitdiffstats
path: root/PLAN.txt
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-06-28 22:38:01 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-06-28 22:38:01 (GMT)
commitbe4fcf1875c84dc22177530238b04b8036935567 (patch)
tree0fab41da5c8cd04b33977e693064f73948af6120 /PLAN.txt
parent71b63ff3423001e385e60cae4222ba7327d873f4 (diff)
downloadcpython-be4fcf1875c84dc22177530238b04b8036935567.zip
cpython-be4fcf1875c84dc22177530238b04b8036935567.tar.gz
cpython-be4fcf1875c84dc22177530238b04b8036935567.tar.bz2
Fixes for two separate HTTP/1.1 bugs: 100 responses and HTTPS connections.
The HTTPResponse class now handles 100 continue responses, instead of choking on them. It detects them internally in the _begin() method and ignores them. Based on a patch by Bob Kline. This closes SF bugs 498149 and 551273. The FakeSocket class (for SSL) is now usable with HTTP/1.1 connections. The old version of the code could not work with persistent connections, because the makefile() implementation read until EOF before returning. If the connection is persistent, the server sends a response and leaves the connection open. A client that reads until EOF will block until the server gives up on the connection -- more than a minute in my test case. The problem was fixed by implementing a reasonable makefile(). It reads data only when it is needed by the layers above it. It's implementation uses an internal buffer with a default size of 8192. Also, rename begin() method of HTTPResponse to _begin() because it should only be called by the HTTPConnection.
Diffstat (limited to 'PLAN.txt')
0 files changed, 0 insertions, 0 deletions