Consider the following code pattern:
var br bufio.Reader
for _, r := range readers {
br.Reset(r)
... // make use of br
}
Currently, this pattern results in an infinite loop since the internal buffer of bufio.Reader is empty (resulting in no progress being made). The bufio.Reader.Reset method should initialize the internal buffer with defaultBufSize if it is empty.
Consider the following code pattern:
Currently, this pattern results in an infinite loop since the internal buffer of
bufio.Readeris empty (resulting in no progress being made). Thebufio.Reader.Resetmethod should initialize the internal buffer withdefaultBufSizeif it is empty.