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
release GIL around getaddrinfo() #37130
Comments
If getaddrinfo() is thread-safe, then we should release |
Logged In: YES How do you know getaddrinfo is thread-safe? In particular, |
Logged In: YES The getaddrinfo() on Linux says it thread-safe. It's a |
Logged In: YES I looked on OpenBSD (I think, may have been NetBSD) and Here's a NetBSD 1.6 man page dated 2002/05/14 and it's still This: It seems safest to do what Jeremy proposes and add a lock. Note: I get much better performance with this patch under |
Logged In: YES RFC 2553 specifies that getaddrinfo, getipnodebyname, and So adding an additional lock, in general, might be overkill. As for the fallback implementation - feel free to do I would not care too much, except that this is used on |
Logged In: YES FWIW, I opened a bug regarding this very same issue (I didn't know if this |
Logged In: YES The last patch from python.org/sf/731644 was accepted by MvL, and |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: