https://github.com/python/cpython/commit/9047146e546599325cddda266e420f42fb318e4e
commit: 9047146e546599325cddda266e420f42fb318e4e
branch: main
author: Jan Kaliszewski <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2024-10-08T17:43:37+05:30
summary:

gh-75898: make use of thread more explicit in the "Socket Programming HOWTO" 
document (#125023)

files:
M Doc/howto/sockets.rst

diff --git a/Doc/howto/sockets.rst b/Doc/howto/sockets.rst
index 0bbf97da39768d..cbc49d15a0771b 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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to