Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

237
Views
Disable ftp connection timeout using ftp npm package in nodejs

I am using npm ftp and getting the timeout after 10 minutes and i have gone through the ftp package documentation and there is no timeout disable option. If we are going to use basic-ftp npm then there is timeout disable option is there but i haven't found anything in ftp. Yes, there is keepalive params is there in the ftp but i want to keep the connection for always.Is there anything that i am missing while keeping the ftp connection.

` throw er; // Unhandled 'error' event ^

Error: No-transfer-time exceeded. Closing control connection.`

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

https://github.com/mscdex/node-ftp

Under Methods:

Find connect:

You'd use these within your config object when firing off connect. Just add these additional params in and set the MS for your requirements.

connTimeout - integer - How long (in milliseconds) to wait for the control connection to be established. Default: 10000

pasvTimeout - integer - How long (in milliseconds) to wait for a PASV data connection to be established. Default: 10000

keepalive - integer - How often (in milliseconds) to send a 'dummy' (NOOP) command to keep the connection alive. Default: 10000

Beyond this, the connection could fail so error handle it in that case if you need ftp to reconnect.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!