python-3.x - 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 文档中找不到有关此共享的任何信息,所以我希望我能在这里找到一些答案...?
解决方案
推荐阅读
- javascript - 如何访问在另一个组件中使用 Link to 发送的状态
- asp.net-mvc - .NET Core 反射 - 如何在 ASP.NET Core 3 Razor 视图中查找属性的引用?
- maven - Azure DevOps Pipeline - Maven 仅在不存在时部署发布
- locust - 控制locust进程的退出代码
- php - 为什么要创建多个 PHP 会话?
- android - 布局中的Android绘图分隔线
- html - Chrome 上的本地 HTML 文件安全性
- c - 获取 OpenCL 设备 ID 时,clGetDeviceIDs() 函数会导致堆内存损坏
- php - 在“?”附近使用正确的语法 订购方式
- sql - 使用 LDAP 和 SQL 连接到 Teradata DB