Chromium Code Reviews| Index: runtime/bin/builtin.dart |
| =================================================================== |
| --- runtime/bin/builtin.dart (revision 31576) |
| +++ runtime/bin/builtin.dart (working copy) |
| @@ -85,6 +85,9 @@ |
| .fold(new BytesBuilder(), (b, d) => b..add(d)) |
| .then((builder) { |
| _requestCompleted(builder.takeBytes(), response); |
| + // This client is only used for a single request. Force closing |
| + // it now otherwise we wait around until it times out. |
| + _client.close(force:true); |
|
Anders Johnsen
2014/01/09 14:09:29
It sounds like it would be better to re-use the ht
Ivan Posva
2014/01/10 06:40:20
We cannot keep the client alive as the request is
|
| }); |
| }).catchError((error) { |
| _requestFailed(error); |