Skip to content

tox3 30s delay caused by DNSServiceCreateConnection on macos #2375

@ssbarnea

Description

@ssbarnea

More than an year after #1735 was closed and locked, I was able to find what was causing it.

It happens on MacOS only when tox.ini file was modified, so if you run it again, it will not be affected by that undesired 30s delay, which is extremely annoying as it applies even for tox -l commands.

Here is the culprit from MacOS Console:

default	08:08:07.717039+0000	mDNSResponder	[R1351382] DNSServiceCreateConnection START PID[53961](python3.10)
default	08:08:07.717132+0000	mDNSResponder	[R1351383] DNSServiceQueryRecord(1D000, 0, <mask.hash: 'W4U2JyNMP4qPLaREUfA9Aw=='>, Addr) START PID[53961](python3.10)
default	08:08:07.717885+0000	mDNSResponder	[R1351384] DNSServiceQueryRecord(1D000, 0, <mask.hash: 'W4U2JyNMP4qPLaREUfA9Aw=='>, AAAA) START PID[53961](python3.10)
default	08:08:07.718398+0000	mDNSResponder	[R1351383] DNSServiceQueryRecord(1D000, 0, <mask.hash: 'AxiCO2kN2tb6f+xUNi2KVQ=='>, Addr) STOP PID[53961](python3.10)
default	08:08:07.718460+0000	mDNSResponder	[R1351384] DNSServiceQueryRecord(1D000, 0, <mask.hash: 'AxiCO2kN2tb6f+xUNi2KVQ=='>, AAAA) STOP PID[53961](python3.10)
default	08:08:07.719293+0000	mDNSResponder	[R1351385] DNSServiceQueryRecord(15000, 0, <mask.hash: 'BbGOo0pN8UoXPv6jtlO7tg=='>, PTR) START PID[53961](python3.10)
default	08:08:37.720264+0000	mDNSResponder	[R1351385] DNSServiceQueryRecord(15000, 0, <mask.hash: 'lubOf0RtXl5C9ERWs7ZGfQ=='>, PTR) STOP PID[53961](python3.10)
default	08:08:37.745626+0000	mDNSResponder	[R1351382] DNSServiceCreateConnection STOP PID[53961](python3.10)

I am not sure what is causing it. I should mention that I do have a full dual IPv4 and IPv6 connectivity on that machine, something that is still not very common. You current stack status can easily be verified with a site like https://ipv6-test.com/

Reference: https://bugs.python.org/issue35164

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:normalaffects many people or has quite an impact

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions