refine fast buffer, check available bytes to read.