]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-25920: Remove socket.getaddrinfo() lock on macOS (GH-20177)
authorVictor Stinner <vstinner@python.org>
Thu, 28 May 2020 15:23:39 +0000 (17:23 +0200)
committerGitHub <noreply@github.com>
Thu, 28 May 2020 15:23:39 +0000 (17:23 +0200)
commit0de437de6210c2b32b09d6c47a805b23d023bd59
tree26232435efcff1009cec6eedf6718eb0266e05ba
parent753643205a28531fd43ef36b40b86282ae6956a7
bpo-25920: Remove socket.getaddrinfo() lock on macOS (GH-20177)

On macOS, socket.getaddrinfo() no longer uses an internal lock to
prevent race conditions when calling getaddrinfo(). getaddrinfo is
thread-safe is macOS 10.5, whereas Python 3.9 requires macOS 10.6 or
newer.

The lock was also used on FreeBSD older than 5.3, OpenBSD older than
201311 and NetBSD older than 4.
Misc/NEWS.d/next/Library/2020-05-18-15-38-25.bpo-25920.PxrLY8.rst [new file with mode: 0644]
Modules/socketmodule.c