asymetrisk transfer of files through ftp
Brooks Davis
brooks at one-eyed-alien.net
Thu May 15 14:45:33 PDT 2003
On Thu, May 15, 2003 at 11:37:07PM +0200, peter wrote:
> When you are trying to transfer large file with ftp (ftpd started with
> inetd), you got a higher transfer rate when you do a ftp get compared to an
> ftp put. I try with ftp localhost same result.
> Is this a bug ?
I believe FreeBSD's ftpd uses sendfile to answer gets which has lower
overhead then the usual while(read(file)){ write(socket); } code. This
might account for the difference.
-- Brooks
--
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030515/8115973f/attachment.bin
More information about the freebsd-current
mailing list