diff options
author | Charles-François Natali <cf.natali@gmail.com> | 2014-03-24 22:25:39 (GMT) |
---|---|---|
committer | Charles-François Natali <cf.natali@gmail.com> | 2014-03-24 22:25:39 (GMT) |
commit | 1d29cc5b6c72afc8e310f99e8245de78493553b9 (patch) | |
tree | 7e1c8a2087a5c43b527c8203a67f31c1dc3dd388 /Doc/library/socketserver.rst | |
parent | e3fb80fb7608538618d3cf731ff39c74a0faa651 (diff) | |
download | cpython-1d29cc5b6c72afc8e310f99e8245de78493553b9.zip cpython-1d29cc5b6c72afc8e310f99e8245de78493553b9.tar.gz cpython-1d29cc5b6c72afc8e310f99e8245de78493553b9.tar.bz2 |
Issue #21040: socketserver: Use the selectors module.
Diffstat (limited to 'Doc/library/socketserver.rst')
-rw-r--r-- | Doc/library/socketserver.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/socketserver.rst b/Doc/library/socketserver.rst index 1ec4438..9db36d5 100644 --- a/Doc/library/socketserver.rst +++ b/Doc/library/socketserver.rst @@ -113,7 +113,7 @@ the request handler class :meth:`handle` method. Another approach to handling multiple simultaneous requests in an environment that supports neither threads nor :func:`~os.fork` (or where these are too expensive or inappropriate for the service) is to maintain an explicit table of -partially finished requests and to use :func:`~select.select` to decide which +partially finished requests and to use :mod:`selectors` to decide which request to work on next (or whether to handle a new incoming request). This is particularly important for stream services where each client can potentially be connected for a long time (if threads or subprocesses cannot be used). See @@ -136,7 +136,7 @@ Server Objects .. method:: BaseServer.fileno() Return an integer file descriptor for the socket on which the server is - listening. This function is most commonly passed to :func:`select.select`, to + listening. This function is most commonly passed to :mod:`selectors`, to allow monitoring multiple servers in the same process. |