A HTTPConnection instance can now be used as a context manager.
If a connection is closed unexpectedly while request body data is being written to the server (i.e., during a call to HTTPConnection.write or HTTPConnection.co_write), dugong now pretends that the body has been sent to the server completely (while still raising ConnectionClosed).
This makes it possible to catch the exception and nevertheless call read_response (or co_read_response) to try to read an error response that the server may have sent during the upload (if no response has been received, ConnectionClosed will be raised again).
is_temp_network_error now actively tries to distinguish between permanent and temporary name resolution problems by attempting to resolve a number of test hostnames.
HTTPConnection has a new timeout attribute. Regular HTTPConnection methods (i.e., no coroutines) will now raise ConnectionTimedOut if no data could be send or received for timeout seconds.