Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After ten failed connections, a message is displayed indicating that the number of connections reaches the upper limit and smb2 is unavailable #84

Open
xiaofenging opened this issue Oct 31, 2023 · 1 comment

Comments

@xiaofenging
Copy link

xiaofenging commented Oct 31, 2023

const SMB2 = require('@marsaud/smb2');
for(let i = 0;i<19;i++){
this.shareConfig = {
            share: sharePath,
            domain: 'DOMAIN',
            username: opt.username,
            password: opt.password,
            autoCloseTimeout: opt.autoCloseTimeout,
        };
this.remoter = new SMB2(this.shareConfig);
this.remoter.exists('a.txt',(err,value)=>{})
}

if the sharePath is a exist path ,everything is perfect.
if the sharePath is a error or unexist path ,and we try to connect it many times then throw an error,then the process unable to use the smb create connection

Error: STATUS_REQUEST_NOT_ACCEPTED (0xC00000D0) : No more connections can be made to this remote computer at this time because the computer has already accepted the maximum number of connections.

@xiaofenging
Copy link
Author

I'd really appreciate it if someone could help me with this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant