Hi,

My application has to accept small files from an ftp client at a rate of several 10s per second. vsftpd does it easily, FtpServer sits stuck at 5/s. Some googling and a hunch led to:
http://www.mail-archive.com/[email protected]/msg01005.html

After hardcoding it to setTcpNodelay(true) exactly as suggested, FtpServer slightly exceeds vsftpd's throughput.

Seems like the control connection should always have Nagle turned off. The data connection may be a matter for debate or configuration. Does the above patch apply to both?

Some extra info in case it helps:

   * driven from a test client using commons-net's ftp client on
     Windows Vista, and tftp on cygwin.
   * vsftpd and FtpServer both running on Debian 5.0 x64.
   * FtpServer running on Vista and being driven from localhost runs
     about twice as fast as on linux, but is still slow. It also
     benefits from the patch.

Regards,

--

Albert Visagie


Reply via email to