mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-75898: make use of thread more explicit in the "Socket Programming HOWTO" document (#125023)
This commit is contained in:
parent
43ad3b5170
commit
9047146e54
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue