diff options
author | Jan Kaliszewski <zuo@kaliszewski.net> | 2024-10-08 12:13:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-08 12:13:37 (GMT) |
commit | 9047146e546599325cddda266e420f42fb318e4e (patch) | |
tree | 64d1f5ee6fd963953a899b0ecb37cff3c3159227 /Doc | |
parent | 43ad3b51707f51ae4b434e2b5950d2c8bf7cca6e (diff) | |
download | cpython-9047146e546599325cddda266e420f42fb318e4e.zip cpython-9047146e546599325cddda266e420f42fb318e4e.tar.gz cpython-9047146e546599325cddda266e420f42fb318e4e.tar.bz2 |
gh-75898: make use of thread more explicit in the "Socket Programming HOWTO" document (#125023)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/howto/sockets.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/howto/sockets.rst b/Doc/howto/sockets.rst index 0bbf97d..cbc49d1 100644 --- a/Doc/howto/sockets.rst +++ b/Doc/howto/sockets.rst @@ -100,8 +100,8 @@ mainloop of the web server:: (clientsocket, address) = serversocket.accept() # now do something with the clientsocket # in this case, we'll pretend this is a threaded server - ct = client_thread(clientsocket) - ct.run() + ct = make_client_thread(clientsocket) + ct.start() There's actually 3 general ways in which this loop could work - dispatching a thread to handle ``clientsocket``, create a new process to handle |