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

Issue 117600043: code review 117600043: undo CL 95760043 / b2131d729e52 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by bradfitz
Modified:
9 years, 11 months ago
Reviewers:
ruiu
CC:
ruiu, golang-codereviews, mpl
Visibility:
Public.

Description

undo CL 95760043 / b2131d729e52 Breaks Camlistore by introducing a datarace. See comments on https://codereview.appspot.com/95760043/ for details. I'll add a new test to lock-in the current behavior in a subsequent CL. I don't think Camlistore is particularly unique here: it's doing the obvious thing to stream a multipart body to a server using a goroutine feeding the multipart writer. ««« original CL description mime/multipart: delay reading random source If a user sets his/her own boundary string with SetBoundary, we don't need to call randomBoundary at all. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://codereview.appspot.com/95760043 »»»

Patch Set 1 #

Patch Set 2 : diff -r 333b975e98c2 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 71dc1b4815f2 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -8 lines) Patch
M src/pkg/mime/multipart/writer.go View 4 chunks +6 lines, -8 lines 0 comments Download

Messages

Total messages: 3
bradfitz
Hello ruiu@google.com (cc: golang-codereviews@googlegroups.com, mathieu.lonjaret@gmail.com), I'd like you to review this change to https://go.googlecode.com/hg/
9 years, 11 months ago (2014-08-05 18:27:43 UTC) #1
ruiu
LGTM. Sigh.
9 years, 11 months ago (2014-08-05 18:32:16 UTC) #2
bradfitz
9 years, 11 months ago (2014-08-05 18:36:49 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=d664f6385548 ***

undo CL 95760043 / b2131d729e52

Breaks Camlistore by introducing a datarace. See comments on
https://codereview.appspot.com/95760043/ for details.

I'll add a new test to lock-in the current behavior in a
subsequent CL.

I don't think Camlistore is particularly unique here: it's doing
the obvious thing to stream a multipart body to a server
using a goroutine feeding the multipart writer.

««« original CL description
mime/multipart: delay reading random source

If a user sets his/her own boundary string with SetBoundary,
we don't need to call randomBoundary at all.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/95760043
»»»

LGTM=ruiu
R=ruiu
CC=golang-codereviews, mathieu.lonjaret
https://codereview.appspot.com/117600043
Sign in to reply to this message.

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