-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Add socket.IP_FREEBIND
constant
#132991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What kind of code search did you do for that? could you share your findings? (I don't mind adding this constant if it's that useful though so TiA) |
https://github.com/search?q=setsockopt+IP_FREEBIND+15+language%3APython&type=code You can see lots of different approaches to work around the lack of this constant. I'll make a PR shortly. |
Thanks. Is there something we however need to do in particular with this constant? should we handle it specifically in some contexts? (I don't know) |
No, it's just for passing to setsockopt(). |
Feature or enhancement
Proposal:
The socket options exposed by CPython's socket module do not include
IP_FREEBIND
, meaning the option number has to be hardcoded. Examples of this in the wild can be find using GitHub's code search.Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: