SamKirkland / ftp-deploy

Deploy websites over FTP with one command line
MIT License
89 stars 43 forks source link

Feature request: Limit of simultaneous connections #29

Open MrMacStripe opened 1 year ago

MrMacStripe commented 1 year ago

When using shared hosts some limit the amount of simultaneous connections to the server. For example, with the German hoster All-Inkl.com you can get an uncaught error:

FTPError: 530 Sorry, the maximum number of connections (10) for your host are already connected.
    at FTPContext._onControlSocketData (/Users/mauricestuffer/WebDev/astro-boilerplate/node_modules/basic-ftp/dist/FtpContext.js:282:39)
    at Socket.<anonymous> (/Users/mauricestuffer/WebDev/astro-boilerplate/node_modules/basic-ftp/dist/FtpContext.js:123:44)
    at Socket.emit (node:events:527:28)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:293:11)
    at Readable.push (node:internal/streams/readable:234:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
  code: 530
}

A way to limit the connections / queue the uploads would fix this.