python / python/cpython

socket.RDS_CMSG_RDMA_UPDATE doesn't seem to be real

Open
#127,069 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

extension-modules topic-socket type-bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.