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

Issue 10913034: Fix pub to close connection to dartlang.org when it's done downloading (Closed)

Created:
8 years, 3 months ago by Jennifer Messerly
Modified:
8 years, 3 months ago
CC:
reviews_dartlang.org, nweiz
Visibility:
Public.

Description

Fix pub to close connection to dartlang.org when it's done downloading See bug http://dartbug.com/4857 fixes: http://dartbug.com/4856 Committed: https://code.google.com/p/dart/source/detail?r=11714

Patch Set 1 #

Patch Set 2 : updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M utils/pub/io.dart View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Jennifer Messerly
This is the fix Mads suggested. I tested this out, with this fix, pub no ...
8 years, 3 months ago (2012-08-31 18:07:06 UTC) #1
Bob Nystrom
LGTM!
8 years, 3 months ago (2012-08-31 18:30:07 UTC) #2
Søren Gjesse
I suggest that a singleton HttpClient is used throughout the application and that that instance ...
8 years, 3 months ago (2012-09-03 07:03:15 UTC) #3
Bob Nystrom
8 years, 3 months ago (2012-09-04 21:59:13 UTC) #4
On 2012/09/03 07:03:15, Søren Gjesse wrote:
> I suggest that a singleton HttpClient is used throughout the application and
> that that instance is shutdown when the application is existing. Performing a
> shutdown after each successful request disables the possibility for using
> persistent connections. Also in an error situation shutdown is not called
which
> might also cause undesired behavior.

Thanks for the suggestion. That's a good point.

I'll be poking at this code again soon (to add better timeout support), so I'll
try out using a single HttpClient then.

Powered by Google App Engine
This is Rietveld 408576698