• Graham Miller's avatar
    bufio: do not cache Read errors · f795bdb9
    Graham Miller authored
    Reader previously had cached an error from the underlying reader
    and would return it on every subsequent call to Read.  The Reader
    will now return the error only once, and subsequent calls will result
    in a new Read call to the underlying Reader.
    
    Fixes #1934.
    
    R=bradfitz, rogpeppe, rsc
    CC=golang-dev
    https://golang.org/cl/4528133
    f795bdb9
bufio_test.go 17.4 KB