Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Issue 11411273: Get curl uploads working on Mac. (Closed)

Created:
8 years ago by Bob Nystrom
Modified:
8 years ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Get curl uploads working on Mac. Committed: https://code.google.com/p/dart/source/detail?r=15592

Patch Set 1 #

Patch Set 2 : Fix test. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -40 lines) Patch
M utils/pub/curl_client.dart View 1 3 chunks +4 lines, -35 lines 2 comments Download
M utils/tests/pub/pub_lish_test.dart View 1 1 chunk +11 lines, -5 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Bob Nystrom
This mostly works, but it fails this test: 'cloud storage upload provides an error' #0 ...
8 years ago (2012-11-30 00:37:17 UTC) #1
nweiz
lgtm https://codereview.chromium.org/11411273/diff/1002/utils/pub/curl_client.dart File utils/pub/curl_client.dart (right): https://codereview.chromium.org/11411273/diff/1002/utils/pub/curl_client.dart#newcode108 utils/pub/curl_client.dart:108: Future _waitForHeaders(Process process, {bool expectBody}) { If you're ...
8 years ago (2012-11-30 01:19:45 UTC) #2
Bob Nystrom
8 years ago (2012-11-30 01:42:44 UTC) #3
Thanks!

https://codereview.chromium.org/11411273/diff/1002/utils/pub/curl_client.dart
File utils/pub/curl_client.dart (right):

https://codereview.chromium.org/11411273/diff/1002/utils/pub/curl_client.dart...
utils/pub/curl_client.dart:108: Future _waitForHeaders(Process process, {bool
expectBody}) {
On 2012/11/30 01:19:45, nweiz wrote:
> If you're still going to call this "waitForHeaders", at least explain in the
> documentation that it's necessary to wait for the process to terminate as
well.

Added a comment explaining.

https://codereview.chromium.org/11411273/diff/1002/utils/tests/pub/pub_lish_t...
File utils/tests/pub/pub_lish_test.dart (right):

https://codereview.chromium.org/11411273/diff/1002/utils/tests/pub/pub_lish_t...
utils/tests/pub/pub_lish_test.dart:207: // TODO(rnystrom): HTTP requires that
you don't start sending a response
On 2012/11/30 01:19:45, nweiz wrote:
> It's probably worth mentioning that curl will actually choke on this on OS X
and
> Windows.

Done.

Powered by Google App Engine
This is Rietveld 408576698