cpython/Lib/test/test_asyncio
Yury Selivanov d5c2a62100 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.
2015-12-16 19:31:17 -05:00
..
__init__.py
__main__.py
echo.py
echo2.py
echo3.py
keycert3.pem
pycacert.pem
ssl_cert.pem
ssl_key.pem
test_base_events.py asyncio: Skip getaddrinfo if host is already resolved. 2015-12-16 19:31:17 -05:00
test_events.py asyncio: Skip getaddrinfo if host is already resolved. 2015-12-16 19:31:17 -05:00
test_futures.py asyncio: Cleanup Future API 2015-11-17 12:19:41 -05:00
test_locks.py Also rewrote the guts of asyncio.Semaphore (patch by manipopopo). 2015-09-29 11:54:45 -07:00
test_proactor_events.py asyncio: Skip getaddrinfo if host is already resolved. 2015-12-16 19:31:17 -05:00
test_queues.py Issue #25233: Rewrite the guts of Queue to be more understandable and correct. 2015-09-28 07:42:34 -07:00
test_selector_events.py asyncio: Add Transport.is_closing() 2015-11-16 12:43:21 -05:00
test_sslproto.py Issue #23243, asyncio: Emit a ResourceWarning when an event loop or a transport 2015-01-29 17:50:58 +01:00
test_streams.py asyncio: Sync with github 2015-12-11 11:32:59 -05:00
test_subprocess.py asyncio: Add Transport.is_closing() 2015-11-16 12:43:21 -05:00
test_tasks.py asyncio: Make Tasks check if Futures are attached to the same event loop 2015-12-11 11:33:59 -05:00
test_transports.py
test_unix_events.py asyncio: Add Transport.is_closing() 2015-11-16 12:43:21 -05:00
test_windows_events.py asyncio: sync with github asyncio 2015-07-09 23:13:50 +02:00
test_windows_utils.py