I have an FTP server that periodically sends 451 responses. When these occur during a file transfer the procedure just seems to hang without calling any expected callbacks. The error event is not emitted and the get() or put() function's (depending on where the 451 is from) callback is NOT called. I have to be able to detect this issue else it breaks my app.
How can I catch this situation and handle it? Debugging to console.log shows:
[connection] < '451-Error during read from data connection: Resource temporarily unavailable\r\n451 0.080 seconds (measured here), 1.56 Mbytes per second\r\n'
[parser] < '451-Error during read from data connection: Resource temporarily unavailable\r\n451 0.080 seconds (measured here), 1.56 Mbytes per second\r\n'
[parser] Response: code=451, buffer='Error during read from data connection: Resource temporarily unavailable\r\n0.080 seconds (measured here), 1.56 Mbytes per second'
I have an FTP server that periodically sends 451 responses. When these occur during a file transfer the procedure just seems to hang without calling any expected callbacks. The error event is not emitted and the get() or put() function's (depending on where the 451 is from) callback is NOT called. I have to be able to detect this issue else it breaks my app.
How can I catch this situation and handle it? Debugging to console.log shows:
Thanks!