rafthttp: limit the buffer for every read correctly

n != lr.n