From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason at zx2c4.com (Jason A. Donenfeld) Date: Sun, 19 Jan 2014 16:17:13 +0100 Subject: [PATCH 2/4] cache: use sendfile() instead of a pair of read() + write() In-Reply-To: References: <1390076700-16626-1-git-send-email-sebastian@breakpoint.cc> <1390076700-16626-3-git-send-email-sebastian@breakpoint.cc> Message-ID: On Sun, Jan 19, 2014 at 3:13 PM, Jason A. Donenfeld wrote: > Would you mind sending another commit where you implement this for the > read() write() situation in authenticate_post() on > http://git.zx2c4.com/cgit/tree/cgit.c#n624 ? Still bounding it to > MAX_AUTHENTICATION_POST_BYTES, but not having to copy it back to > userspace? On second thought, don't. Since we're hooking write() here, it doesn't make too much sense to do. Silly me.