Skip to content

Commit b305739

Browse files
committed
Tutorial: Correct error in section 7.6 re select.poll.
1 parent af12a3c commit b305739

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

v3/docs/TUTORIAL.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2420,10 +2420,8 @@ There are two basic approaches to socket programming under `asyncio`. By
24202420
default sockets block until a specified read or write operation completes.
24212421
`asyncio` supports blocking sockets by using `select.poll` to prevent them
24222422
from blocking the scheduler. In most cases it is simplest to use this
2423-
mechanism. Example client and server code may be found in the `client_server`
2424-
directory. The `userver` application uses `select.poll` explicitly to poll
2425-
the server socket. The client sockets use it implicitly in that the `asyncio`
2426-
stream mechanism employs it.
2423+
mechanism. Note that the `asyncio` stream mechanism employs it. Example client
2424+
and server code may be found in the `client_server` directory.
24272425

24282426
Note that `socket.getaddrinfo` currently blocks. The time will be minimal in
24292427
the example code but if a DNS lookup is required the blocking period could be

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy