SSH/SFTP Server Listen Backlog issue
Posted: Wed 17 Aug 2016 06:04
Hi,
Just a FYI, you have the listen backlog set way to low and it causes problems on a busy server.
For example if you use the SSH server with the SFTP server and you use filezilla and have it set to 10 max concurrent connections the server will raise a error that it can't create event.
I figured this was because of the backlog and looked in the code and sure enough it was set in one location in the code to 3 and another to 5.
I increased this to a bigger number and all the errors related to filezilla and multiple concurrent connections went away completely.
What would be really nice if is you could add a backlog param in the component editor like the Indy FTP server has so we can adjust the listen backlog as needed.
Oh, just so you know I built a small managed SFTP/FTP server using Sbridge and Lazarus and it's working outstanding, yesterday it uploaded and processed/moved using SQLite rules over 1000 files.
Thanks,
Just a FYI, you have the listen backlog set way to low and it causes problems on a busy server.
For example if you use the SSH server with the SFTP server and you use filezilla and have it set to 10 max concurrent connections the server will raise a error that it can't create event.
I figured this was because of the backlog and looked in the code and sure enough it was set in one location in the code to 3 and another to 5.
I increased this to a bigger number and all the errors related to filezilla and multiple concurrent connections went away completely.
What would be really nice if is you could add a backlog param in the component editor like the Indy FTP server has so we can adjust the listen backlog as needed.
Oh, just so you know I built a small managed SFTP/FTP server using Sbridge and Lazarus and it's working outstanding, yesterday it uploaded and processed/moved using SQLite rules over 1000 files.
Thanks,