socket.RDS_CMSG_RDMA_UPDATE doesn't seem to be real
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the CPython socket module's constant definitions and compare RDS_CMSG_RDMA_UPDATE with the linked Linux include/uapi/linux/rds.h header. Confirm whether it is a typo for RDS_CMSG_CONG_UPDATE or should be removed, then verify the socket constants behave consistently on the affected platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- networking, operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100