From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason at zx2c4.com (Jason A. Donenfeld) Date: Sun, 19 Jan 2014 15:13:40 +0100 Subject: [PATCH 2/4] cache: use sendfile() instead of a pair of read() + write() In-Reply-To: <1390076700-16626-3-git-send-email-sebastian@breakpoint.cc> References: <1390076700-16626-1-git-send-email-sebastian@breakpoint.cc> <1390076700-16626-3-git-send-email-sebastian@breakpoint.cc> Message-ID: Excellent, thanks Sebastian! I've merged this commit. 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?