sendfile: Block or return EAGAIN, iff we are really short of space
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 22 Jan 2012 13:59:30 +0000 (21:59 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 22 Jan 2012 13:59:30 +0000 (21:59 +0800)
commit9f8501871094e35f9e2088f5983165f0faf6a763
tree95791b99e638de9eb263473adf275a7765b8f30e
parentf786a6ac5c46366d76322e2580f68a8c21dcc07b
sendfile: Block or return EAGAIN, iff we are really short of space

Send sockbuf's lowat could be quite "high" (hiwat/2), the originally
code actually only uses 1/2 of the send sockbuf space, thus poor
performance.
sys/kern/uipc_syscalls.c