refactor to operation timeout work with SSL connections