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

Issue 126583003: - Don't wait for the client to time out before finishing the load (Closed)

Created:
6 years, 11 months ago by Ivan Posva
Modified:
6 years, 11 months ago
Reviewers:
Cutch, siva, Anders Johnsen
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Bob Nystrom
Visibility:
Public.

Description

- Don't wait for the client to time out before finishing the load of source code from http. R=johnmccutchan@google.com Committed: https://code.google.com/p/dart/source/detail?r=31593

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M runtime/bin/builtin.dart View 1 chunk +3 lines, -0 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
Ivan Posva
6 years, 11 months ago (2014-01-07 23:51:24 UTC) #1
Cutch
lgtm
6 years, 11 months ago (2014-01-07 23:59:11 UTC) #2
Ivan Posva
Committed patchset #1 manually as r31593 (presubmit successful).
6 years, 11 months ago (2014-01-08 00:12:36 UTC) #3
Anders Johnsen
DBC https://codereview.chromium.org/126583003/diff/1/runtime/bin/builtin.dart File runtime/bin/builtin.dart (right): https://codereview.chromium.org/126583003/diff/1/runtime/bin/builtin.dart#newcode90 runtime/bin/builtin.dart:90: _client.close(force:true); It sounds like it would be better ...
6 years, 11 months ago (2014-01-09 14:09:29 UTC) #4
Ivan Posva
6 years, 11 months ago (2014-01-10 06:40:20 UTC) #5
Message was sent while issue was closed.
-Ivan

https://codereview.chromium.org/126583003/diff/1/runtime/bin/builtin.dart
File runtime/bin/builtin.dart (right):

https://codereview.chromium.org/126583003/diff/1/runtime/bin/builtin.dart#new...
runtime/bin/builtin.dart:90: _client.close(force:true);
On 2014/01/09 14:09:29, Anders Johnsen wrote:
> It sounds like it would be better to re-use the http client. That we it would
> use keep-alive for multiple requests.

We cannot keep the client alive as the request is synchronous with the loading
execution (we need to exit this run loop before we can make forward progress).
Also there is no guarantee that the next request is going to the same host, so
you would not necessarily be able to reuse the connection anyway.

Powered by Google App Engine
This is Rietveld 408576698