Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Issue 3395042: code review 3395042: bufio: ensure that Read calls underlying Read once only. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by rog
Modified:
14 years, 1 month ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

bufio: ensure that Read calls underlying Read once only.

Patch Set 1 #

Patch Set 2 : code review 3395042: bufio: ensure that Read calls underlying Read once only. #

Total comments: 1

Patch Set 3 : code review 3395042: bufio: ensure that Read calls underlying Read once only. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -34 lines) Patch
M src/pkg/bufio/bufio.go View 1 2 1 chunk +35 lines, -34 lines 0 comments Download

Messages

Total messages: 9
rog
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 3 months ago (2010-12-02 19:49:11 UTC) #1
rog
submitted without ReadFull. if you still think it needs ReadFull, then i'll add it. On ...
14 years, 3 months ago (2010-12-02 19:50:15 UTC) #2
rsc1
http://codereview.appspot.com/3395042/diff/2001/src/pkg/bufio/bufio.go File src/pkg/bufio/bufio.go (right): http://codereview.appspot.com/3395042/diff/2001/src/pkg/bufio/bufio.go#newcode139 src/pkg/bufio/bufio.go:139: for b.w == b.r { s/for/if/
14 years, 3 months ago (2010-12-06 19:43:33 UTC) #3
rog
On 6 December 2010 19:43, <rsc@google.com> wrote: > http://codereview.appspot.com/3395042/diff/2001/src/pkg/bufio/bufio.go#newcode139 > src/pkg/bufio/bufio.go:139: for b.w == b.r ...
14 years, 3 months ago (2010-12-07 10:37:53 UTC) #4
rsc
That assumes that zero-length reads with err == nil cannot happen. I'd rather write the ...
14 years, 3 months ago (2010-12-07 18:39:52 UTC) #5
rog
i thought you might say that... FWIW, the original loop would loop indefinitely as long ...
14 years, 3 months ago (2010-12-07 18:52:32 UTC) #6
rsc
On Tue, Dec 7, 2010 at 13:52, roger peppe <rogpeppe@gmail.com> wrote: > i thought you ...
14 years, 3 months ago (2010-12-07 19:52:43 UTC) #7
rsc1
LGTM
14 years, 3 months ago (2010-12-07 19:53:04 UTC) #8
rsc
14 years, 3 months ago (2010-12-07 19:54:18 UTC) #9
*** Submitted as 3decb5689887 ***

bufio: make Reader.Read implement io.Reader semantics

R=rsc
CC=golang-dev
http://codereview.appspot.com/3395042

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b