Update readbuffer size immediately to avoid assertion