Staging
v0.5.1
https://github.com/python/cpython
Revision d5c2a6210026834eb3cb7165e470d2cbc3065db8 authored by Yury Selivanov on 17 December 2015, 00:31:17 UTC, committed by Yury Selivanov on 17 December 2015, 00:31:17 UTC
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.
1 parent 8c084eb
History
Tip revision: d5c2a6210026834eb3cb7165e470d2cbc3065db8 authored by Yury Selivanov on 17 December 2015, 00:31:17 UTC
asyncio: Skip getaddrinfo if host is already resolved.
Tip revision: d5c2a62
File Mode Size
c-api
data
distributing
distutils
extending
faq
howto
includes
install
installing
library
reference
tools
tutorial
using
whatsnew
Makefile -rw-r--r-- 5.9 KB
README.txt -rw-r--r-- 4.6 KB
about.rst -rw-r--r-- 1.5 KB
bugs.rst -rw-r--r-- 4.0 KB
conf.py -rw-r--r-- 5.6 KB
contents.rst -rw-r--r-- 538 bytes
copyright.rst -rw-r--r-- 451 bytes
glossary.rst -rw-r--r-- 40.9 KB
license.rst -rw-r--r-- 45.6 KB
make.bat -rw-r--r-- 3.8 KB

README.txt

back to top