Skip to content

[3.15] gh-73458: Fix logging.config.listen() on a host without an IPv4 address (GH-154491) - #154616

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-45a10f5-3.15
Jul 26, 2026
Merged

[3.15] gh-73458: Fix logging.config.listen() on a host without an IPv4 address (GH-154491)#154616
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-45a10f5-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

The server is created in a thread which set the "ready" event only after a
successful start, so a failure to start left the caller waiting for that
event forever. Set it also on failure.

The receiver always used AF_INET, which fails if the host has no IPv4
address, for example if "localhost" is only aliased to ::1. Use the family
of the first resolved address in such case.

Also fixes gh-82076.
(cherry picked from commit 45a10f5)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

… address (pythonGH-154491)

The server is created in a thread which set the "ready" event only after a
successful start, so a failure to start left the caller waiting for that
event forever.  Set it also on failure.

The receiver always used AF_INET, which fails if the host has no IPv4
address, for example if "localhost" is only aliased to ::1.  Use the family
of the first resolved address in such case.

Also fixes pythongh-82076.
(cherry picked from commit 45a10f5d711ebe1bce9c6b93c10bbc5fe5bdf392)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@miss-islington
miss-islington requested a review from vsajip as a code owner July 24, 2026 15:00
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 24, 2026 15:07
@serhiy-storchaka
serhiy-storchaka merged commit f4c210c into python:3.15 Jul 26, 2026
98 of 100 checks passed
@miss-islington
miss-islington deleted the backport-45a10f5-3.15 branch July 26, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants