recvfrom MSDN上有这样的说明 WSAECONNRESET The virtual circuit was reset by the remote side executing a hard or abortive close. The application should close the socket; it is no longer usable. On a UDP-datagram socket this error indicates a previous send operation resulted in an ICMP Port Unreachable message.
关闭后重新 connect
The virtual circuit was reset by the remote side executing a hard or abortive close. The application should close the socket; it is no longer usable. On a UDP-datagram socket this error indicates a previous send operation resulted in an ICMP Port Unreachable message.
虚拟电路由远端执行硬关闭或失败关闭来重置。应用程序应该关闭套接字;它不再可用。在UDP数据报套接字上,此错误表示先前的发送操作导致ICMP端口不可达消息。
搜狗翻译的,
找一晚上错,发现在发生10054错误后程序会继续,执行之前的连接操作,开始时重复的pid(进程)是一个,在重复会出现重新创建一个pid,导致后台一直在创建新的进程