File tree
Expand file treeCollapse file tree1 file changed
+2
-4
lines changed Expand file treeCollapse file tree1 file changed
+2
-4
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -2420,10 +2420,8 @@ There are two basic approaches to socket programming under `asyncio`. By
|
2420 | 2420 | default sockets block until a specified read or write operation completes.
|
2421 | 2421 | `asyncio` supports blocking sockets by using `select.poll` to prevent them
|
2422 | 2422 | 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. |
2427 | 2425 |
|
2428 | 2426 | Note that `socket.getaddrinfo` currently blocks. The time will be minimal in
|
2429 | 2427 | the example code but if a DNS lookup is required the blocking period could be
|
|
You can’t perform that action at this time.
0 commit comments