Skip to content

Commit 9047146

Browse files
authored
gh-75898: make use of thread more explicit in the "Socket Programming HOWTO" document (#125023)
1 parent 43ad3b5 commit 9047146

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/howto/sockets.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ mainloop of the web server::
100100
(clientsocket, address) = serversocket.accept()
101101
# now do something with the clientsocket
102102
# in this case, we'll pretend this is a threaded server
103-
ct = client_thread(clientsocket)
104-
ct.run()
103+
ct = make_client_thread(clientsocket)
104+
ct.start()
105105

106106
There's actually 3 general ways in which this loop could work - dispatching a
107107
thread to handle ``clientsocket``, create a new process to handle

0 commit comments

Comments
 (0)