node-ftp icon indicating copy to clipboard operation
node-ftp copied to clipboard

How to prevent connection from closing?

Open Zendor18 opened this issue 5 years ago • 1 comments

I'm using your library for load and parse csv files from ftp. But i have trouble with closing connection after some period of time. How i can keep connection all the time, untill readableStream not fully consumed? Or can i auto reconnect somehow? And can i resume stream after reconnect? @mscdex;

Zendor18 avatar Apr 07 '20 06:04 Zendor18

Have you tried setting the "keepalive" parameter? I set mine to an extremely long time, like 10000. That seemed to solve my issue.

cjboco avatar Nov 06 '20 00:11 cjboco