Skip to content

Commit 69cedf4

Browse files
committed
adjust.
1 parent c505e6a commit 69cedf4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

12.network/tcp_server_poll.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
print('repond data ', client)
2929
data = client.recv(64) # max recv limit
3030
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':
31+
# you can take disclientnected, If you receive an empty packet or a specified string(such as data == b'disconnect').
32+
if len(data) == 0 or data == b'disconnect':
3333
poll.modify(client, select.POLLOUT) # it modify to POLLOUT
3434
elif event == select.POLLOUT:
3535
client = sockets[fd.fileno()]

0 commit comments

Comments
 (0)