mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-29 16:55:32 +00:00
Merge pull request #1431 from pbiering/fix-1313
catch "EBUSY" and move EAI_AGAIN
This commit is contained in:
commit
d6e295c272
1 changed files with 4 additions and 4 deletions
|
@ -298,6 +298,8 @@ def serve(configuration: config.Configuration,
|
||||||
isinstance(e, socket.gaierror) and (
|
isinstance(e, socket.gaierror) and (
|
||||||
# Hostname does not exist or doesn't have
|
# Hostname does not exist or doesn't have
|
||||||
# address for address family
|
# address for address family
|
||||||
|
# Linux: temporary failure in name resolution (-3)
|
||||||
|
e.errno == socket.EAI_AGAIN or
|
||||||
# macOS: IPv6 address for INET address family
|
# macOS: IPv6 address for INET address family
|
||||||
e.errno == socket.EAI_NONAME or
|
e.errno == socket.EAI_NONAME or
|
||||||
# Address not for address family
|
# Address not for address family
|
||||||
|
@ -309,10 +311,8 @@ def serve(configuration: config.Configuration,
|
||||||
# macOS: IPv4 address for INET6 address family with
|
# macOS: IPv4 address for INET6 address family with
|
||||||
# IPV6_V6ONLY set
|
# IPV6_V6ONLY set
|
||||||
e.errno == errno.EADDRNOTAVAIL or
|
e.errno == errno.EADDRNOTAVAIL or
|
||||||
# Temporary failure in name resolution
|
# Device or resource busy (16)
|
||||||
# can happen if "hosts" is using eg. "localhost"
|
e.errno == errno.EBUSY or
|
||||||
# and only resolvable to an IPv4 address
|
|
||||||
e.errno == -3 or
|
|
||||||
# Address family not supported
|
# Address family not supported
|
||||||
e.errno == errno.EAFNOSUPPORT or
|
e.errno == errno.EAFNOSUPPORT or
|
||||||
# Protocol not supported
|
# Protocol not supported
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue