➜ ~ godoc bufio ReadBytes
type Reader struct {
// contains filtered or unexported fields
}
Reader implements buffering for an io.Reader object.
func (b *Reader) ReadBytes(delim byte) (line []byte, err error)
ReadBytes reads until the first occurrence of delim in the input,
returning a slice containing the data up to and including the delimiter.
If ReadBytes encounters an error before finding a delimiter, it returns
the data read before the error and the error itself (often io.EOF).
ReadBytes returns err != nil if and only if the returned data does not
end in delim. For simple uses, a Scanner may be more convenient.
if the reader read data from socket,it is block?if not data arrive,i think it block.
but the function doc not illustrate it.