HttpParser and multiple concatenated HTTP responses
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- networking
调研方向
首先复现围绕 HttpParser.execute() 和 is_message_complete() 的连续响应场景,然后检查响应结束时 _clen_rest 是如何更新的。完成的标准是,解析器报告第一个响应的边界,而不会将后续响应文本放入 body,这样另一个解析器就可以从返回的位置开始解析。
由索引模型根据 Issue 内容生成。
描述
Hi!
If my understanding is correct HttpParser.execute returns the number of bytes consumed, hence it is possible to parse multiple concatenated HTTP responses by checking is_message_complete() and starting a new parser from the same very position the last one stopped.
However the observed behavior is very different: execute() happily consumes the whole string, the subsequent responses text ends up in the message body and _clen_rest is negative.
- 主要语言
- C
- 星标
- 345
- 派生
- 93
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
benoitc/http-parser 的其他 Issue
-
Python 3.12 installation fails可能已有人在做 @s-t-e-v-e-n-k 于 1039 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 38/100
benoitc/http-parser#99 · 1 条评论 · 6 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 45/100
benoitc/http-parser#98 · 1 条评论 · 2 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 50/100
benoitc/http-parser#96 ·
-
Build fails on python3.11可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 45/100
benoitc/http-parser#94 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 30/100
benoitc/http-parser#93 · 1 条评论 · 1 个 reaction ·
查看 benoitc/http-parser 的全部 Issue
相似的 Issue
-
`table_create()` crashes when an `hccalloc()` for the option table fails可能已有人在做 @marinelay 今天认领。 未关闭type: bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug severity: low
难度 2/5 1-3 小时 新手友好度 78/100
AlessandroSangiuliano/Uros#950 ·
-
ESP32
难度 1/5 1 小时以内 新手友好度 84/100
-
难度 1/5 1-3 小时 新手友好度 82/100
HandBrake/HandBrake#8266 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
saschb2b/Mega-Man-Battle-Network-Cyberworld-Endless#568 ·
维护者通常 1 天内回复