An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.(由于系统缓冲区空间不足或队列已满,不能执行套接字上的操作
用前置机windows连接linux发现报错:An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full,刚开始还以为一直是linux服务器的问题,后来发现是前置机连接数量TCP占用多了导致。
解决方法:1、重启电脑无用的端口占用连接数会自己删除
2.1、增加最大使用端口数
注册表下:HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
新增加一项:MaxUserPort对应数据50000
2.2、修改间隔的恢复时间:
注册表下:HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
TcpTimedWaitDelay对应数据10
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)