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

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

Issue 22839013: Add HttpServer.idleTimeout for closing idle keep-alive connections. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 1433ac8244a4b0ee84bd0e0fcdbb537c147c6373..df228f522c69b53bdb34c446c687911e1021c30b 100644
--- a/sdk/lib/io/http.dart
+++ b/sdk/lib/io/http.dart
@@ -204,6 +204,17 @@ abstract class HttpServer implements Stream<HttpRequest> {
* added to each response.
*/
String serverHeader;
+
+ /**
+ * Get or set the timeout used for idle keep-alive connections. If no further
+ * request is seen within [idleTimeout] after the previous request was
+ * completed, the connection is droped.
+ *
+ * Default is 120 seconds.
+ *
+ * To disable, set [idleTimeout] to `null`.
+ */
+ Duration idleTimeout;
}
« 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