-
Notifications
You must be signed in to change notification settings - Fork 155
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
Error: ECONNRESET #103
Comments
Hi,
|
Hi, I have simillar problem. I'm uploading a list files to the remote ftp host and getting random ECONNRESET errors on file upload. It's always some other file. The problem appears only with debug = off. A working workaround for me is to put a timeout of 200ms between file uploads. |
Without having any idea of how the ftp protocol works and being a javascript/node.js - noob I think the problem is that jsftp registeres to the 'error'-Event of the pasv socket used to PUT files only in the callback of the self.execute. This creates a time span where the socket is created but without error handler. If it gets closed before jsftp issued the STOR command (or if it is closed as reaction to the STOR command...) the ECONNRESET event is without handler. I (apparently) fixed this problem by moving the socket event listener registration out of the inner callback function into the outer "getPasvSocket"
|
I am still having this error when I run:
events.js:72 |
Same issue here when trying to put files in parallel , creating new JSFtp instance for each file works. See #66 |
I think this issue is related to node it self nodejs/node#3595 |
Hello guys , it happen because FTP server drop connection , so you need to handle this error in the same way you handle other network errors, don't forget to set |
Same problem now in 2017. The solution provided by @dypsilon in 2014 still works today. Normally I would just through in a smiley or hooray icon at the comment that helped. But due to the large time span between a helpful solution and now, a comment like this seemed appropriate. |
Hi,
I'm having trouble determining the proper way to handle ECONNRESET errors which are currently causing my app to quit with the following error --
Here is my code --
Thanks,
Lou
The text was updated successfully, but these errors were encountered: