Add `RDS_CMSG_RXPATH_LATENCY` to `socket`
未关闭
topic-socket
type-feature
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- PR 合并指标
- PR 指标待抓取
描述
Feature or enhancement
Proposal:
This issue suggests adding new RDS constants.
s = /* a RDS type socket */
msg, ancdata, flags, addr = s.recvmsg(2048, socket.CMSG_LEN(5 * 128))
for cmsg_level, cmsg_type, cmsg_data in ancdata:
if cmsg_type == RDS_CMSG_RXPATH_LATENCY:
# some processing
It‘s used to query the rx-path(that's receive) latency of RDS. Usually used to optimize RDS communication, such as controlling the number of connections and other strategies
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
- gh-127384
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查 socket 模块对 RDS 辅助数据的处理,以及提案中描述的 recvmsg 路径。检查链接的 PR gh-127384,了解当前实现和预期的测试覆盖;完成意味着常量 RDS_CMSG_RXPATH_LATENCY 已公开,并且可以与所示的辅助数据流一起使用。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- networking
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100