我有python aiohttp客户端从一台服务器下载文件并将其上传到另一台服务器,我试图避免下载文件存储在本地磁盘或内存上,以便如何将内容从一台服务器重定向到另一台上传服务器 . 我更喜欢aiohttp todo:

从服务器1下载文件

async with aiohttp.ClientSession(connector=conn,timeout=timeout) as session:
  async with session.get("https://server1.com/largefile.data",headers=headers) as resp:
       server1_data = await resp.content.read()

async with aiohttp.ClientSession(connector=conn,timeout=timeout) as session:
  async with session.post("https://server2.com/uploade",data=server1_data) as resp:
       print(resp.status)

server1_data目前正在使用我的RAM内存以及如何避免这种情况?

非常感谢...