hai-go opened a new issue, #10889: URL: https://github.com/apache/dubbo/issues/10889
### 问题 无论我怎么重启服务,甚至重启电脑也无法解决。dubbo 提示:Address already in use 问题。 最后debug 一层一层网上找。最后经过测试发现 ServerSocket ignored = new ServerSocket(i); 会存在ignored.close(); 关闭失败问题。 ### 现象 当我运行至portToBind = NetUtils.getAvailablePort(defaultPort); 时 sudo lsof -i tcp:20882 显示没有监听此端口。 当执行至ServerSocket ignored = new ServerSocket(i); 执行sudo lsof -i tcp:20882 显示端口已被监听,当执行ignored.close(); 成功执行未报错。 再次查看端口时,还是显示被监听。最后就提示端口已经被使用。 貌似 20880和20881 一般会启动成功。 ### 截图 <img width="741" alt="image" src="https://user-images.githubusercontent.com/42711480/200301868-90b6bf79-704e-4ebb-a496-0be210b7f85d.png"> <img width="1022" alt="image" src="https://user-images.githubusercontent.com/42711480/200301980-f5b8d2e3-d42d-46e3-8f44-7bd6d5589a92.png"> <img width="992" alt="image" src="https://user-images.githubusercontent.com/42711480/200302201-a3af410c-8488-4e79-a9d4-fb0ceb87bb69.png"> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
