{"action":"closed","issue":{"url":"https://api.github.com/repos/morris/vinyl-ftp/issues/24","labels_url":"https://api.github.com/repos/morris/vinyl-ftp/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/morris/vinyl-ftp/issues/24/comments","events_url":"https://api.github.com/repos/morris/vinyl-ftp/issues/24/events","html_url":"https://github.com/morris/vinyl-ftp/issues/24","id":95762401,"number":24,"title":"Error: read ECONNRESET","user":{"login":"StuartMorris0","id":1994135,"avatar_url":"https://avatars.githubusercontent.com/u/1994135?v=3","gravatar_id":"","url":"https://api.github.com/users/StuartMorris0","html_url":"https://github.com/StuartMorris0","followers_url":"https://api.github.com/users/StuartMorris0/followers","following_url":"https://api.github.com/users/StuartMorris0/following{/other_user}","gists_url":"https://api.github.com/users/StuartMorris0/gists{/gist_id}","starred_url":"https://api.github.com/users/StuartMorris0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StuartMorris0/subscriptions","organizations_url":"https://api.github.com/users/StuartMorris0/orgs","repos_url":"https://api.github.com/users/StuartMorris0/repos","events_url":"https://api.github.com/users/StuartMorris0/events{/privacy}","received_events_url":"https://api.github.com/users/StuartMorris0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-17T23:16:13Z","updated_at":"2015-08-18T14:01:36Z","closed_at":"2015-08-18T14:01:36Z","body":"Hello,\r\n\r\nWe are trying to setup vinyl-ftp for quick deployment within our process. We separate our Development (Gulp Files, JS, LESS etc) then have our main site folder in a 'Site Files' folder. The setup for our deploy is as follows:\r\n\r\n```\r\ngulp.task( 'deploy', function() {\r\n    var conn = ftp.create( {\r\n        // username, host, pass etc.\r\n        parallel: 1,\r\n        maxConnections: 1,\r\n        log:      gutil.log\r\n    } );\r\n\r\n    var globs = [\r\n        '../Site Files/assets/**'\r\n    ];\r\n\r\n    // using base = '.' will transfer everything to /public_html correctly\r\n    // turn off buffering in gulp.src for best performance\r\n\r\n    return gulp.src( globs, { base: '.', buffer: false } )\r\n        .pipe( conn.newer( '/public_html' ) ) // only upload newer files\r\n        .pipe( conn.dest( '/public_html' ) );\r\n\r\n} );\r\n```\r\n\r\nEvery time we run the task we get an error:\r\nCONN\r\nREADY\r\nMSLD /Site Files\r\nERROR Error: read ECONNRESET\r\n     at exports._errnoException (util.js:746:11)\r\n    at TCP.onread (net.js:559:26) (ECONNRESET)\r\nDISC\r\n\r\nDo you know what this could be?\r\n\r\nWe have a limit of 3 connections to the host, that is why we limit parallel/MaxConnections to 1 to stop the limit being hit a lot.\r\n\r\nThanks"}}