utf decode cont...
parent
1dd8bdf982
commit
6273be3743
|
@ -218,7 +218,7 @@ class TCPServer(object):
|
||||||
self.close_client(fd)
|
self.close_client(fd)
|
||||||
return
|
return
|
||||||
|
|
||||||
self.client_buf[fd] += buf
|
self.client_buf[fd] += buf.decode()
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
cmd, sep, tail = self.client_buf[fd].partition('\n')
|
cmd, sep, tail = self.client_buf[fd].partition('\n')
|
||||||
|
|
Loading…
Reference in New Issue