[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2008-08-23 Thread C. Scott Ananian
C. Scott Ananian <[EMAIL PROTECTED]> added the comment: FWIW, the following code works around the issue for me: class HTTPConnection(httplib.HTTPConnection): def request(self, method, url, body=None, headers={}): # patch upstream to recv() after we send, so that a

[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2008-08-16 Thread C. Scott Ananian
New submission from C. Scott Ananian <[EMAIL PROTECTED]>: Although HTTP/1.1 says that servers SHOULD send a Connection: close header if they intend to close a persistent connection (sec 8.1.2.1), clients (like httplib) "MUST be able to recover from asynchronous close events. Clie