raise ConnectionFailedError if reading the response gets EOF