-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.