Potential race condition of event registration and adding waker?
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- rust
- 领域
- networking
调研方向
Start at ch10/a-rust-futures-bonus/src/http.rs lines 69-70 and trace the event registration, waker insertion, and epoll handling described in the issue. Determine whether an edge-triggered event can be consumed before the waker is available; done means resolving that race or documenting why it cannot occur, with a regression test if the behavior is reproducible.
由索引模型根据 Issue 内容生成。
描述
@cfsamson Would it be possible that after the interest is registered, the reactor quickly get the event and tries to call wake, but waker has not been added since lock here. Now that epoll is edge-level here, the event will never be received again so never wake the executor. I'm not sure if I'm right.
- 主要语言
- Rust
- 星标
- 339
- 派生
- 97
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PacktPublishing/Asynchronous-Programming-in-Rust 的其他 Issue
-
second edition
难度 1/5 1 小时以内 新手友好度 55/100
PacktPublishing/Asynchronous-Programming-in-Rust#46 · 4 条评论 ·
-
second edition
难度 3/5 1-2 天 新手友好度 35/100
PacktPublishing/Asynchronous-Programming-in-Rust#45 · 2 条评论 ·
-
难度 3/5 1-2 天 新手友好度 38/100
PacktPublishing/Asynchronous-Programming-in-Rust#43 · 3 条评论 · 1 个 reaction ·
-
second edition
难度 3/5 1-2 天 新手友好度 35/100
PacktPublishing/Asynchronous-Programming-in-Rust#41 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
PacktPublishing/Asynchronous-Programming-in-Rust#26 · 1 条评论 ·
查看 PacktPublishing/Asynchronous-Programming-in-Rust 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
FalkorDB/FalkorDB#3597 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
needs triage
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 72/100
mozilla-services/syncstorage-rs#2715 ·
维护者通常 1 天内回复