首页 > 解决方案 > aiohttp 如何为多个请求共享一个连接?

问题描述

从我读到的 aiohttp文档:

The session contains a cookie storage and connection pool, thus cookies and connections are shared between HTTP requests sent by the same session.

我不明白 aiohttp 是如何发送第一部分的,比如说 10 个请求,然后通过同一个 TCP 连接以随机顺序接收不同请求的片段,这些片段必须拼凑在一起......

我在 aiohttp 文档中找不到有关此共享的任何信息,所以我希望我能在这里找到一些答案...?

标签: python-3.xrequestconnectionaiohttp

解决方案


推荐阅读