correct read pointer moving when searching for end of request