Closed GoogleCodeExporter closed 8 years ago
After digging deeper, it seems there may be a bug in Python's httplib or in
httplib2,
which only occurs if the server closes the socket before the client has had a
chance
to send the request body. This is the case for CouchDB - once it has read the
request headers it immediately attempts auth, and it
I think this is acceptable (and HTTP-compliant) behaviour. It just means that
even
if the httplib/httplib2 client library gets a broken pipe error when writing the
request body, it should check for a response first before propagating the error.
I am working on finding a workaround or a patch for httplib/httplib2, watch
this space.
Original comment by jason.da...@gmail.com
on 21 Mar 2009 at 1:19
Just filed a bug in the Python bug tracker for httplib:
http://bugs.python.org/issue5542
I also have a patch for httplib2.
Original comment by jason.da...@gmail.com
on 23 Mar 2009 at 9:30
Patch for httplib2 posted to:
http://code.google.com/p/httplib2/issues/detail?id=51
Original comment by jason.da...@gmail.com
on 23 Mar 2009 at 9:40
Jason, can I correctly conclude that we probably shouldn't do anything to fix
this in
CouchDB-python?
Original comment by djc.ochtman
on 14 Dec 2009 at 11:04
Closing as WorksForMe, feel free to re-open.
Original comment by djc.ochtman
on 24 Dec 2009 at 12:57
Original issue reported on code.google.com by
jason.da...@gmail.com
on 20 Mar 2009 at 11:58Attachments: