SecureBridge SSH/SFTP Server Retrieve Dir list super slow

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
tcaduto12068
Posts: 128
Joined: Wed 17 Aug 2016 05:57

SecureBridge SSH/SFTP Server Retrieve Dir list super slow

Post by tcaduto12068 » Fri 07 Oct 2016 13:41

Hi,
I have been using the SFTP server in production for a couple of months now and for the most part it is pretty good (except for some stability issues I mentioned in another thread)

Their is one other thing that is affecting the use of the SFTP server and that is a client doing a directory listing. It seems to get progressively slower the more files are in the directory.
Sometimes it's so slow that the connection times out waiting for it.

I don't know for sure but it seems to be related to getting the file attributes for the listing.

tcaduto12068
Posts: 128
Joined: Wed 17 Aug 2016 05:57

Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow

Post by tcaduto12068 » Fri 07 Oct 2016 14:49

Here is an example from FileZilla with 111 files in the directory:

Status: Retrieving directory listing of "/"...
Status: Listing directory /
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing

ViktorV
Devart Team
Posts: 2689
Joined: Wed 30 Jul 2014 07:16

Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow

Post by ViktorV » Mon 10 Oct 2016 11:49

Thank you for the information. The issue investigation is in progress. We will inform you when we have any results.

ViktorV
Devart Team
Posts: 2689
Joined: Wed 30 Jul 2014 07:16

Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow

Post by ViktorV » Wed 23 Nov 2016 14:24

The new build of SecureBridge 7.2.3 with improved performance when reading a directory with a large number of files is already available for download. To improve the performance, you can use the event handler TScSFTPServer.RequestFileSecurityAttributes.

mbillig02
Posts: 9
Joined: Sat 09 Feb 2019 23:16

Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow

Post by mbillig02 » Thu 28 Feb 2019 20:23

I am seeing a similar issue with 901. I tried using a simple ftp server and it is close to instant getting the file listing. When using the ScSFTPServer component it is slow and times out on large directories. Both of these are using FileZilla as the client on the same computer.

ViktorV
Devart Team
Posts: 2689
Joined: Wed 30 Jul 2014 07:16

Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow

Post by ViktorV » Mon 04 Mar 2019 09:59

This overhead is associated with the installation of security attributes in the information for each file in the directory. Therefore, to increase performance, you should use the TScSFTPServer.RequestFileSecurityAttributes event handler. Maximum performance will be achieved if you go not perform any actions in this event handler. Only in this case, no security attributes will be set to the information about the files.
For more information about this event, see SecureBridge Help: https://devart.com/sbridge/docs/tscsftp ... ibutes.htm

tcaduto12068
Posts: 128
Joined: Wed 17 Aug 2016 05:57

Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow

Post by tcaduto12068 » Thu 11 Apr 2019 14:01

Hi,
So if we use this event we should not put anything in it? Just a comment?
I am slightly confused on how to use this.

tcaduto12068
Posts: 128
Joined: Wed 17 Aug 2016 05:57

Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow

Post by tcaduto12068 » Thu 11 Apr 2019 14:26

Ok, I set the event with just a comment and wow it's fast now, however the clients shows ---------- for permissions now.
would it be possible to send a fake set so the client shows something instead of ---------?

tcaduto12068
Posts: 128
Joined: Wed 17 Aug 2016 05:57

Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow

Post by tcaduto12068 » Thu 11 Apr 2019 15:08

Did this and it seems to work fine:

Attributes.Permissions:=[pR_USR, pW_USR, pR_GRP, pW_GRP];

ViktorV
Devart Team
Posts: 2689
Joined: Wed 30 Jul 2014 07:16

Re: SecureBridge SSH/SFTP Server Retrieve Dir list super slow

Post by ViktorV » Fri 12 Apr 2019 08:59

It is good to see that the problem has been solved.
You found a right solution to the issue.
Feel free to contact us if you have any further questions about our products.

Post Reply