Test proxy behavior when origin server disconnects

Add a test for a CONNECT proxy where the remote server closes the
connection, and then we try to reuse it.