rafthttp: limit the buffer for every read correctly