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

Issue 6739055: code review 6739055: net/http: add missing error checking reading trailers (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by bradfitz
Modified:
11 years, 5 months ago
Reviewers:
CC:
golang-dev, rsc, dfc
Visibility:
Public.

Description

net/http: add missing error checking reading trailers This is a simplified version of earlier versions of this CL and now only fixes obviously incorrect things, without changing the locking on bodyEOFReader. I'd like to see if this is sufficient before changing the locking. Update issue 4191

Patch Set 1 #

Patch Set 2 : diff -r 8d919bfe75d3 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 8d919bfe75d3 https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 4 : diff -r 40ba4d4e4672 https://code.google.com/p/go #

Patch Set 5 : diff -r 40ba4d4e4672 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -7 lines) Patch
M src/pkg/net/http/client_test.go View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M src/pkg/net/http/transfer.go View 1 2 3 2 chunks +12 lines, -1 line 0 comments Download
A src/pkg/net/http/transfer_test.go View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
M src/pkg/net/http/transport.go View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 7
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 6 months ago (2012-10-22 21:26:03 UTC) #1
rsc
LGTM https://codereview.appspot.com/6739055/diff/3/src/pkg/net/http/transfer.go File src/pkg/net/http/transfer.go (right): https://codereview.appspot.com/6739055/diff/3/src/pkg/net/http/transfer.go#newcode544 src/pkg/net/http/transfer.go:544: err = io.ErrUnexpectedEOF Looks like readTrailer already does ...
11 years, 5 months ago (2012-11-01 16:28:36 UTC) #2
bradfitz
Hello golang-dev@googlegroups.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 5 months ago (2012-11-13 21:46:46 UTC) #3
bradfitz
PTAL I removed the locking changes and updated the CL description. I want to get ...
11 years, 5 months ago (2012-11-13 21:47:30 UTC) #4
bradfitz
[+dustin] Dustin, could you test this latest version of the patch? It's only half of ...
11 years, 5 months ago (2012-11-14 05:11:47 UTC) #5
dfc
LGTM. Please fix the description Update issue 4191.
11 years, 5 months ago (2012-11-14 05:31:22 UTC) #6
bradfitz
11 years, 5 months ago (2012-11-14 06:38:28 UTC) #7
*** Submitted as http://code.google.com/p/go/source/detail?r=4d72f3689b54 ***

net/http: add missing error checking reading trailers

This is a simplified version of earlier versions of this CL
and now only fixes obviously incorrect things, without
changing the locking on bodyEOFReader.

I'd like to see if this is sufficient before changing the
locking.

Update issue 4191

R=golang-dev, rsc, dave
CC=golang-dev
http://codereview.appspot.com/6739055
Sign in to reply to this message.

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