http://www.jianshu.com/p/eecab8d50697 shutdown() doesn't actually close the file descriptor—it just changes its usability. To free a socket descriptor, you need to use close(). shutdown是一种优雅地单方向或者双方向关闭socket的方法. 而close则立即双方向强制关闭socket并释放相关资源. 如果有多个进程…