TODO 实践检验 立即重用 int reuseaddr = 1;setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &reuseaddr, sizeof(reuseaddr)); 跳过TIME_WAIT状态 修改内核参数:vim /proc/sys/net/ipv4/tcp_tw_recycle TODO 实践检验