]> granicus.if.org Git - python/commit
Remove special logic that closes HTTPConnection socket on EPIPE.
authorJeremy Hylton <jeremy@alum.mit.edu>
Sat, 28 Mar 2009 04:34:21 +0000 (04:34 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Sat, 28 Mar 2009 04:34:21 +0000 (04:34 +0000)
commit636950f925d50763537d40342ec622808c9b7e9d
treeffd2880a6d118f374af24da66f435c6027eddca8
parent7c1692d587b62bbb0657d6c049e320e37c53e711
Remove special logic that closes HTTPConnection socket on EPIPE.

http://bugs.python.org/issue5542

If the socket is closed, the client has no chance to read the response
from the server.  EPIPE means that it isn't possible to write more
data from the socket, but not that it is impossible to read.

Also, various formatting changes.
Lib/http/client.py
Lib/test/test_httplib.py