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

Streams not closing properly #21

Closed
jldowns opened this issue Aug 9, 2016 · 1 comment
Closed

Streams not closing properly #21

jldowns opened this issue Aug 9, 2016 · 1 comment

Comments

@jldowns
Copy link
Contributor

jldowns commented Aug 9, 2016

When chaining many .then() blocks, I get

Error: (SSH) Channel open failure: open failed

due to hitting the max number of connections to my remote server. I think this is the same issue as mscdex/ssh2#219 . I added some .close() calls before the Promise resolutions and it solved my problem.

I'll submit a pull request with what worked for me, although I don't have any test scripts to run it against.

@steelbrain
Copy link
Owner

Fixed by #22

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

2 participants