fix a request that hangs around after an unexpected response if the server is set to use keep-alive connections