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

Vinyl FTP keeps creating new connections

Open vladaman opened this issue 9 years ago • 1 comments

Regardless of the connection options the task creates more then 1 connection.

var conn = ftp.create( {
                parallel: 1,
                maxConnections: 1,
                secure: true,
                reload: true,
                secureOptions: { rejectUnauthorized: false },
                log:      gutil.log
        } );

The copy starts and then in the middle of the task I get following error:

... some files have been uploaded already ...
[07:52:38] 'deploy' errored after 27 s
[07:52:38] Error: Unable to make data connection
    at Socket.<anonymous> (----/main/master/node_modules/vinyl-ftp/node_modules/ftp/lib/connection.js:935:10)

Why is new connection created?

vladaman avatar May 20 '16 05:05 vladaman

The tests all pass with parallel=1 and maxConnections=1 on my end - I don't think it's an extra FTP connection that's created here. It's probably just the upload that fails for some reason. Can you paste the complete log?

morris avatar Jun 18 '16 11:06 morris