Page 1 of 1

is FTP server using Nagel? Directory listing is very slow.

Posted: Fri 26 Feb 2016 18:15
by snorkel
Hi,
I have my sftp server working, but I noticed that after logon there is a long pause between the session initiating, reading the remote directory and then listing it.
(this is with Lazarus and FPC by the way)

It's odd though, most of the times the dir listing is slow, but then once in awhile it's really fast.

Do you guys have any idea what may be going on?

Re: is FTP server using Nagel? Directory listing is very slow.

Posted: Fri 26 Feb 2016 18:34
by snorkel
With winscp:

it gets to Authenticated pretty fast, then
winscp reports:
Starting the session...
<about 5 seconds elapse>
Reading remote directory...

Re: is FTP server using Nagel? Directory listing is very slow.

Posted: Sat 12 Mar 2016 15:59
by snorkel
I think it may be related to the fact I am running my server for testing on a corp laptop that has very aggressive Anti Virus and data encryption and I think it's somehow affecting the directory listing.
I tried it on my home LAN with non of that crap and it was much better, though for some reason the
second time a client connects it's much faster even on my home LAN

Re: is FTP server using Nagel? Directory listing is very slow.

Posted: Fri 18 Mar 2016 14:43
by ViktorV
Yes, enabled antivirus and data encryption may affect speed of directory reading. Directory reading on re-connection may be faster, since the system caches data.