为服务端增加多进程解决方案 1.server端代码如下: #!/usr/bin/python #!coding:utf-8 import os,sys,time from socket import * def handleClient(conn): print '[info] handleClient is :{0}'.format(os.getpid()) while True: data = conn.recv(1024) if not data : print '[info] handl…