]> git.ipfire.org Git - thirdparty/httpx.git/commit
Handle h11.Connection.next_event() RemoteProtocolError (#524)
authortoppk <toppk@bllue.org>
Fri, 22 Nov 2019 08:33:40 +0000 (03:33 -0500)
committerFlorimond Manca <florimond.manca@gmail.com>
Fri, 22 Nov 2019 08:33:40 +0000 (09:33 +0100)
commitf06ca87f9728346ba6b8550315b25a2c15ab8fb8
treebed9123aad48a894bed7123866ea3072731c7c2e
parent926d6cd6e490bb20558b11b4d640c58ef19c0f72
Handle h11.Connection.next_event() RemoteProtocolError (#524)

raise (new) ConnectionClosed exception if this occurs when
socket is closed, otherwise reuse ProtocolError exception.

Add test case for ConnectionClosed behavior.

Resolves #96
httpx/dispatch/http11.py
httpx/exceptions.py
tests/conftest.py
tests/dispatch/test_connections.py