Bug 15861

Summary: ftpd did not use sendfile(2) when sending regular files
Product: Base System Reporter: Jukka Ukkonen <Jukka.Ukkonen>
Component: binAssignee: dan <dan>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.2-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Jukka Ukkonen 2000-01-03 17:10:00 UTC
        The ftpd could have performed better by using the sendfile(2)
        call instead of mmap(), read(), write(), and munmap() combination
        while sending out a regular file.

Fix: A tentative quick hack patch below.
        Modify it, if you think changes are needed.
        Otherwise: share and enjoy. ;-)

How-To-Repeat: 
        Check the ftpd code for sending regular files to see what it does,
        and try it as it is and with sendfile() replacing the looping method
        using mmap(), read(), write(), and munmap() calls.
Comment 1 Adrian Chadd freebsd_committer freebsd_triage 2000-07-24 09:48:19 UTC
Responsible Changed
From-To: freebsd-bugs->adrian

I'll handle this one and probably make it a compile time option ..
Comment 2 dan freebsd_committer freebsd_triage 2000-09-26 00:52:48 UTC
Responsible Changed
From-To: adrian->dan

This patch is on my review plate
Comment 3 dan freebsd_committer freebsd_triage 2000-12-20 03:46:58 UTC
State Changed
From-To: open->closed


This functionality exists now.