mirror of
https://github.com/python/cpython.git
synced 2025-01-07 00:54:38 +08:00
2fc2313038
* _check_resolved_address() is implemented with getaddrinfo() which is slow * If available, use socket.inet_pton() instead of socket.getaddrinfo(), because it is much faster Microbenchmark (timeit) on Fedora 21 (Python 3.4, Linux 3.17, glibc 2.20) to validate the IPV4 address "127.0.0.1" or the IPv6 address "::1": * getaddrinfo() 10.4 usec per loop * inet_pton(): 0.285 usec per loop On glibc older than 2.14, getaddrinfo() always requests the list of all local IP addresses to the kernel (using a NETLINK socket). getaddrinfo() has other known issues, it's better to avoid it when it is possible. |
||
---|---|---|
.. | ||
__init__.py | ||
__main__.py | ||
echo2.py | ||
echo3.py | ||
echo.py | ||
keycert3.pem | ||
pycacert.pem | ||
ssl_cert.pem | ||
ssl_key.pem | ||
test_base_events.py | ||
test_events.py | ||
test_futures.py | ||
test_locks.py | ||
test_proactor_events.py | ||
test_queues.py | ||
test_selector_events.py | ||
test_sslproto.py | ||
test_streams.py | ||
test_subprocess.py | ||
test_tasks.py | ||
test_transports.py | ||
test_unix_events.py | ||
test_windows_events.py | ||
test_windows_utils.py |