1
0
mirror of https://github.com/golang/go synced 2024-10-05 12:21:22 -06:00
go/src/pkg/bufio
Rui Ueyama 4ffc799295 bufio: fix bug that ReadFrom stops before EOF or error
ReadFrom should not return until it receives a non-nil error
or too many contiguous (0, nil)s from a given reader.
Currently it immediately returns if it receives one (0, nil).
Fixes #7611.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/76400048
2014-03-24 11:48:34 -07:00
..
bufio_test.go bufio: fix bug that ReadFrom stops before EOF or error 2014-03-24 11:48:34 -07:00
bufio.go bufio: fix bug that ReadFrom stops before EOF or error 2014-03-24 11:48:34 -07:00
example_test.go bufio: add Writer example 2013-08-12 13:03:50 +10:00
export_test.go bufio: new Scanner interface 2013-02-20 12:14:31 -08:00
scan_test.go all: use {bytes,strings}.NewReader instead of bytes.Buffers 2014-01-27 11:05:01 -08:00
scan.go bufio: fix bug that ReadFrom stops before EOF or error 2014-03-24 11:48:34 -07:00