[PATCH] relay: consolidate sendfile() and read() code