Resize buffer and keep reading