mscdex / node-ftp

An FTP client module for node.js
MIT License
1.13k stars 244 forks source link

How to prevent connection from closing? #263

Open Zendor18 opened 4 years ago

Zendor18 commented 4 years ago

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;

cjboco commented 3 years ago

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