]> Cypherpunks repositories - gostls13.git/commit
bytes.Buffer: read of 0 bytes at EOF shouldn't be an EOF
authorRob Pike <r@golang.org>
Tue, 27 Dec 2011 07:49:24 +0000 (23:49 -0800)
committerRob Pike <r@golang.org>
Tue, 27 Dec 2011 07:49:24 +0000 (23:49 -0800)
commit6a88f1c4cb212bc8c9ab7517b8eab2b4c20c6e67
treec179e2235459f3e59ebb013d5cdd05da066e6c4e
parent83d540244337214922802776eaf5ea4b6f597be5
bytes.Buffer: read of 0 bytes at EOF shouldn't be an EOF
This corner case arose doing an RPC with a empty-slice payload. Ouch.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5505073
src/pkg/bytes/buffer.go
src/pkg/bytes/buffer_test.go