• R David Murray's avatar
    #3566: Clean up handling of remote server disconnects. · cae7bdb4
    R David Murray yazdı
    This changeset does two things: introduces a new RemoteDisconnected exception
    (that subclasses ConnectionResetError and BadStatusLine) so that a remote
    server disconnection can be detected by client code (and provides a better
    error message for debugging purposes), and ensures that the client socket is
    closed if a ConnectionError happens, so that the automatic re-connection code
    can work if the application handles the error and continues on.
    
    Tests are added that confirm that a connection is re-used or not re-used
    as appropriate to the various combinations of protocol version and headers.
    
    Patch by Martin Panter, reviewed by Demian Brecht.  (Tweaked only slightly by
    me.)
    cae7bdb4
Adı
Son kayıt (commit)
Son güncelleme
..
c-api Loading commit data...
data Loading commit data...
distributing Loading commit data...
distutils Loading commit data...
extending Loading commit data...
faq Loading commit data...
howto Loading commit data...
includes Loading commit data...
install Loading commit data...
installing Loading commit data...
library Loading commit data...
reference Loading commit data...
tools Loading commit data...
tutorial Loading commit data...
using Loading commit data...
whatsnew Loading commit data...
Makefile Loading commit data...
README.txt Loading commit data...
about.rst Loading commit data...
bugs.rst Loading commit data...
conf.py Loading commit data...
contents.rst Loading commit data...
copyright.rst Loading commit data...
glossary.rst Loading commit data...
license.rst Loading commit data...
make.bat Loading commit data...