summaryrefslogtreecommitdiff
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-12-16 19:31:17 -0500
committerYury Selivanov <yselivanov@sprymix.com>2015-12-16 19:31:17 -0500
commitd5c2a6210026834eb3cb7165e470d2cbc3065db8 (patch)
tree27996fb066b690bde43694bdfd6b50deaed8f630 /Python/fileutils.c
parent8c084eb77d69ec1527fad943a4031b1b29193e98 (diff)
downloadcpython-git-d5c2a6210026834eb3cb7165e470d2cbc3065db8.tar.gz
asyncio: Skip getaddrinfo if host is already resolved.
getaddrinfo takes an exclusive lock on some platforms, causing clients to queue up waiting for the lock if many names are being resolved concurrently. Users may want to handle name resolution in their own code, for the sake of caching, using an alternate resolver, or to measure DNS duration separately from connection duration. Skip getaddrinfo if the "host" passed into create_connection is already resolved. See https://github.com/python/asyncio/pull/302 for details. Patch by A. Jesse Jiryu Davis.
Diffstat (limited to 'Python/fileutils.c')
0 files changed, 0 insertions, 0 deletions