Skip to content
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

catch "EBUSY" and move EAI_AGAIN #1431

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions radicale/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ def serve(configuration: config.Configuration,
isinstance(e, socket.gaierror) and (
# Hostname does not exist or doesn't have
# address for address family
# Linux: temporary failure in name resolution (-3)
e.errno == socket.EAI_AGAIN or
# macOS: IPv6 address for INET address family
e.errno == socket.EAI_NONAME or
# Address not for address family
Expand All @@ -309,10 +311,8 @@ def serve(configuration: config.Configuration,
# macOS: IPv4 address for INET6 address family with
# IPV6_V6ONLY set
e.errno == errno.EADDRNOTAVAIL or
# Temporary failure in name resolution
# can happen if "hosts" is using eg. "localhost"
# and only resolvable to an IPv4 address
e.errno == -3 or
# Device or resource busy (16)
e.errno == errno.EBUSY or
# Address family not supported
e.errno == errno.EAFNOSUPPORT or
# Protocol not supported
Expand Down
Loading