Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

238
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda