socket.RDS_CMSG_RDMA_UPDATE doesn't seem to be real
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- PR 合并指标
- PR 指标待抓取
描述
Bug report
Bug description:
I was recently working through the constants in socket for typeshed. I found that RDS_CMSG_RDMA_UPDATE is not present in linux header files for any version of linux, and the only hits for a google search are python-related. I believe this is a typo for RDS_CMSG_CONG_UPDATE, which is the only RDS_*_UPDATE constant in rds.h: see the header file here
Given that it's been that way for 13 years without anyone noticing, I don't know if it should be fixed or if it should just be removed. Original issue: https://github.com/python/cpython/issues/52025
Original commit: https://github.com/python/cpython/commit/10b8cf4455f48eba93077535e4d03eba2ee4bbfb
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 CPython 的 socket 模块常量定义开始,将 RDS_CMSG_RDMA_UPDATE 与链接的 Linux 头文件 include/uapi/linux/rds.h 进行比较。确认它是否是 RDS_CMSG_CONG_UPDATE 的拼写错误,或者是否应将其删除,然后验证 socket 常量在受影响的平台上的行为是否一致。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- networking, operating-systems
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100