socket.error: [Errno 10054] An existing connection was forcibly closed by the remote host (python2.7)
问题 I have a problem with my socket , it is well functioning but when i close the client / close the client window the server lost the connection ( the server needs to stay open and wait for other connection) while True: rlist, wlist, xlist = select.select([server_socket]+open_client_sockets, open_client_sockets, []) for current_socket in rlist: if current_socket is server_socket: (new_socket, address) = server_socket.accept() open_client_sockets.append(new_socket) print 'new member : ' + str