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

Unified Diff: sdk/lib/io/http.dart

Issue 311513002: Enable throttleing of HttpClient per host, with default being 6. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http.dart
diff --git a/sdk/lib/io/http.dart b/sdk/lib/io/http.dart
index 21b177d84eaf5a41d1b6daf9e5904a4a2b41326f..edb614b654ef60d49d2f536ee8c28506f4a02355 100644
--- a/sdk/lib/io/http.dart
+++ b/sdk/lib/io/http.dart
@@ -1225,6 +1225,18 @@ abstract class HttpClient {
Duration idleTimeout;
/**
+ * Get and set the maximum number of live connections, to a single host.
+ *
+ * Increasing this number may lower performance and take up unwanted
+ * system resources.
+ *
+ * To disable, set to `null`.
+ *
+ * Default is 6.
Søren Gjesse 2014/06/02 10:33:20 Make the default `null` to keep the existing behav
Anders Johnsen 2014/06/02 10:38:46 I was under the assumption we wanted to provide a
+ */
+ int maxConnectionsPerHost = 6;
+
+ /**
* Set and get the default value of the `User-Agent` header for all requests
* generated by this [HttpClient]. The default value is
* `Dart/<version> (dart:io)`.
« no previous file with comments | « no previous file | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698