]> arthur.barton.de Git - netatalk.git/commit
Use FreeBSD sendfile() capability to send protocol header
authorFrank Lahm <franklahm@googlemail.com>
Fri, 15 Mar 2013 08:19:40 +0000 (09:19 +0100)
committerRalph Boehme <sloowfranklin@gmail.com>
Mon, 18 Mar 2013 14:38:50 +0000 (15:38 +0100)
commitfa5fcf44a4a5498a3083a24985c98ffb42fbce9c
tree68c1289bfc5a424513001b45872768db217886ec
parent89e6bd07ecee758e784b77e5de357525dda6db0b
Use FreeBSD sendfile() capability to send protocol header

When transmitting file contents to a client with sendfile(), on
every platform other then Solaris (where we use sendfilev()), we
send the AFP the protocol header with an additional send with
MSG_MORE before calling sendfile().
FreeBSD sendfile() supports sending protocol header (and trailer)
data similarly to Solaris sendfilev().
NEWS
etc/afpd/fork.c
libatalk/dsi/dsi_stream.c