Inefficient at reading large amounts of adapter stderr output
- is there a way to read a standard error stream efficiently, up to some maximum number of bytes?
- can’t use
read_to_end, because it will read too much - can’t use
read_exact, because it doesn’t tell you how much it read captureintimeoutcmdis the slow code