Traceback (most recent call last):
File "s1.py", line 63, in
data = tcpCliSock.recv(bufsize).decode()
ConnectionResetError: [Errno 104] Connection reset by peer
解决办法:把异常by pass
from socket import error as SocketError
import errno
try:
...
...
except SocketError as e:
if e.errno != errno.ECONNRESET:
raise
pass