cpython/Lib/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 Issue #23046: Expose the BaseEventLoop class in the asyncio namespace 2015-01-06 01:03:58 +01:00
base_events.py asyncio: Skip getaddrinfo if host is already resolved. 2015-12-16 19:31:17 -05:00
base_subprocess.py asyncio: Add Transport.is_closing() 2015-11-16 12:43:21 -05:00
compat.py asyncio: Add asyncio.compat module 2015-07-25 02:23:21 +02:00
constants.py
coroutines.py asyncio: Error if awaiting in parallel on the same coroutine 2015-11-18 12:39:45 -05:00
events.py Issue #23972: updates to asyncio datagram API. By Chris Laws. 2015-10-05 09:15:28 -07:00
futures.py asyncio: Cleanup Future API 2015-11-17 12:19:41 -05:00
locks.py Also rewrote the guts of asyncio.Semaphore (patch by manipopopo). 2015-09-29 11:54:45 -07:00
log.py
proactor_events.py asyncio: Skip getaddrinfo if host is already resolved. 2015-12-16 19:31:17 -05:00
protocols.py asyncio doc: document Protocol state machine 2015-01-29 13:33:15 +01:00
queues.py Issue #25233: Rewrite the guts of Queue to be more understandable and correct. 2015-09-28 07:42:34 -07:00
selector_events.py asyncio: Skip getaddrinfo if host is already resolved. 2015-12-16 19:31:17 -05:00
sslproto.py asyncio: Add Transport.is_closing() 2015-11-16 12:43:21 -05:00
streams.py asyncio: Sync with github 2015-12-11 11:32:59 -05:00
subprocess.py asyncio: sync with github 2015-07-25 02:40:40 +02:00
tasks.py asyncio: Make Tasks check if Futures are attached to the same event loop 2015-12-11 11:33:59 -05:00
test_utils.py asyncio: Skip getaddrinfo if host is already resolved. 2015-12-16 19:31:17 -05:00
transports.py asyncio: Add Transport.is_closing() 2015-11-16 12:43:21 -05:00
unix_events.py asyncio: Cleanup Future API 2015-11-17 12:19:41 -05:00
windows_events.py asyncio: async() function is deprecated in favour of ensure_future(). 2015-05-11 14:48:38 -04:00
windows_utils.py Issue #23243, asyncio: Emit a ResourceWarning when an event loop or a transport 2015-01-29 17:50:58 +01:00