-
Notifications
You must be signed in to change notification settings - Fork 154
jsftp intermittently skips end
event on socket
#106
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
Comments
Observed behavior:
Expected behavior:
|
Maybe my issue is related, but not sure as this is all way above my pay grade. When I run the sample list or get examples, I am left with a blinking cursor and not at the command prompt. No big deal. I've been able to get the files off a server I needed. All I do is hit control-C. But it would be nice to know what to do to terminate the script. In any case: Bravo Sergi for making my life a lot easier. Thank you! |
Hey @doronin, this scenario can happen when the socket is closed due to an error (http://nodejs.org/api/net.html#net_event_error_1). In that case, an So, one way to see if that's what's happening is to listen to the |
When getting file using
Ftp.prototype.get
socket intermittently emitsclose
event without emittingend
event. This causes downstream consumers (like https://github.com/sergi/jsftp/blob/master/lib/jsftp.js#L438) to hang until timeout kicks in.The text was updated successfully, but these errors were encountered: