kelly345

Results 3 comments of kelly345

resp = self.sock.recv(10240000) 把这个值调大一些就可以用vim了,因为vim时文件内容太多被截断了

我就是改了这里,就能vim打开很多大的文件了,包含中文字符的文件没尝试过

def run(self): while not self.ws.closed: try: resp = self.sock.recv(10240000) if resp is not None and len(resp) is not 0: self.ws.send(resp) else: print 'Connection disconnected...' self.ws.send('Connection disconnected...') self.ws.close() self.sock.close() except: print...