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

Changed ssh stream to listen for 'end' event rather than 'close' #115

Merged
merged 2 commits into from
Jan 5, 2016

Conversation

danielpigott
Copy link
Contributor

Using end instead of close appears to resolve issues I was having where intermittently the ssh command was completing but nothing was put in the stdout. The end event "will not fire unless the data is completely consumed" (https://nodejs.org/api/stream.html#stream_event_end) so this seems to be want we want. Tested on node v5.3.0.

@pstadler
Copy link
Owner

pstadler commented Jan 5, 2016

Thanks for this pull request 🍻

pstadler added a commit that referenced this pull request Jan 5, 2016
Changed ssh stream to listen for 'end' event rather than 'close'
@pstadler pstadler merged commit 7a4a6d4 into pstadler:master Jan 5, 2016
@pstadler
Copy link
Owner

pstadler commented Jan 5, 2016

0.6.9 has been released: https://github.com/pstadler/flightplan/releases/tag/0.6.9

@danielpigott
Copy link
Contributor Author

Glad to help, flightplan is a really useful tool 😄

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

Successfully merging this pull request may close these issues.

2 participants