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

R. David Murray report at bugs.python.org
Mon Apr 6 01:34:38 CEST 2015


R. David Murray added the comment:

Thanks, Martin and Demian.  I tweaked the patch slightly before commit, so I've uploaded the diff.  After thinking about it I decided that it does indeed make sense that the new exception subclass both ConnectionResetError and BadStatusLine, exactly because it *isn't* a pure ConnectionError, it is a synthetic one based on getting a '' response when we are expecting a status line.  So I tweaked the language to not mention backward compatibility.  I also tweaked the language of the docs, comments and error message to make it clear that the issue is that the server closed the connection (I understand why you changed it to 'shut down', but I think 'the server closed the connection' is both precise enough and more intuitive).

If you have any issues with the changes I made, let me know.

----------
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed
Added file: http://bugs.python.org/file38839/RemoteDisconnected.v6.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3566>
_______________________________________


More information about the Python-bugs-list mailing list