Smbfile类实例.listFiles();报错计算机没有更多的连接数

The bird that flies 2019-01-10 05:12:19
错误信息:No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept.
有会的朋友吗
...全文
299 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
引用 3 楼 LCL_data 的回复:
http://samba.2283325.n4.nabble.com/Troubles-with-hosts-workgroups-enumeration-td2513241.html 这个里面他提到这个问题 But on another network (lets call it network #2; network with WINS server) there was another strange behavior. Some period of time jcifs works good, but after some number of listFiles() requests "No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept." error occurred and disappeared only after computer reboot. So I was unable to use jcifs on that network to enumerate resources because of instability. 他猜是jcifs太不稳定了
这个我之前看过了,并没有谈及断开连接的方法。
十八道胡同 2019-01-10
  • 打赏
  • 举报
回复
http://samba.2283325.n4.nabble.com/Troubles-with-hosts-workgroups-enumeration-td2513241.html

这个里面他提到这个问题

But on another network (lets call it network #2; network with WINS
server) there was another strange behavior. Some period of time jcifs
works good, but after some number of listFiles() requests "No more
connections can be made to this remote computer at this time because
there are already as many connections as the computer can accept."
error occurred and disappeared only after computer reboot. So I was
unable to use jcifs on that network to enumerate resources because of
instability.

他猜是jcifs太不稳定了
  • 打赏
  • 举报
回复
引用 1 楼 LCL_data 的回复:
之前的连接 都关闭没?
就是不知道怎么关。我想是一直没关,所有就到了没有更多连接数的地步。
十八道胡同 2019-01-10
  • 打赏
  • 举报
回复
之前的连接 都关闭没?

51,397

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧