1、问题
conn, err := net.Dial(“tcp”, ‘127.0.0.1:50001’)
执行此语句报错详细报错信息
dial tcp 127.0.0.1:50001: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.
此报错的原因一般是系统端口已用尽,无法再建立新的Socket连接
https://blog.csdn.net/xia_xing/article/details/53352658
服务器 TIME_WAIT和CLOSE_WAIT
https://blog.csdn.net/xia_xing/article/details/53352486
常见SOCKET错误参数
https://blog.csdn.net/macky0668/article/details/4257721