]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-127319: Disable port reuse on HTTP, XMLRPC, and logging TCP servers (GH-135405)
authorJeremy Cline <jeremycline@linux.microsoft.com>
Sun, 15 Jun 2025 05:34:29 +0000 (01:34 -0400)
committerGitHub <noreply@github.com>
Sun, 15 Jun 2025 05:34:29 +0000 (06:34 +0100)
commit2bd3895fcabb2dfdae5c0c72e60483e3d3267f0f
treedfae694fa3c2bebc8e4d238e0215a22f372307a6
parent8979d3afe376c67931665070a79f6939ebcd940b
gh-127319: Disable port reuse on HTTP, XMLRPC, and logging TCP servers (GH-135405)

Prior to issue #120485 these servers did not allow port reuse, which
makes sense as the behavior of port reuse is surprising if you're not
expecting it. It's unclear to me why these services were switched to
allow port reuse, but I believe the desired behavior (unless subclasses
opt in) is to not allow port reuse.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=2323170
Lib/http/server.py
Lib/logging/config.py
Lib/test/test_logging.py
Lib/xmlrpc/server.py
Misc/NEWS.d/next/Core_and_Builtins/2025-06-11-15-08-10.gh-issue-127319.OVGFSZ.rst [new file with mode: 0644]