8000 gh-112169: Documented getaddrinfo/getnameinfo default loop executor u… · python/cpython@fc297b4 · GitHub
[go: up one dir, main page]

Skip to content

Commit fc297b4

Browse files
alex-kowalczykgvanrossumkumaraditya303willingc
gh-112169: Documented getaddrinfo/getnameinfo default loop executor usage and implications. (#112191)
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
1 parent 1500a23 commit fc297b4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/library/asyncio-eventloop.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,14 @@ DNS
11551155

11561156
Asynchronous version of :meth:`socket.getnameinfo`.
11571157

1158+
.. note::
1159+
Both *getaddrinfo* and *getnameinfo* internally utilize their synchronous
1160+
versions through the loop's default thread pool executor.
1161+
When this executor is saturated, these methods may experience delays,
1162+
which higher-level networking libraries may report as increased timeouts.
1163+
To mitigate this, consider using a custom executor for other user tasks,
1164+
or setting a default executor with a larger number of workers.
1165+
11581166
.. versionchanged:: 3.7
11591167
Both *getaddrinfo* and *getnameinfo* methods were always documented
11601168
to return a coroutine, but prior to Python 3.7 they were, in fact,

0 commit comments

Comments
 (0)
0