We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c505e6a commit 69cedf4Copy full SHA for 69cedf4
1 file changed
12.network/tcp_server_poll.py
@@ -28,8 +28,8 @@
28
print('repond data ', client)
29
data = client.recv(64) # max recv limit
30
print(data)
31
- # you can take disclientnected, If you receive an empty packet or a specified string(such as data == b'disclientnect').
32
- if len(data) == 0 or data == b'disclientnect':
+ # you can take disclientnected, If you receive an empty packet or a specified string(such as data == b'disconnect').
+ if len(data) == 0 or data == b'disconnect':
33
poll.modify(client, select.POLLOUT) # it modify to POLLOUT
34
elif event == select.POLLOUT:
35
client = sockets[fd.fileno()]
0 commit comments