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

Unified Diff: runtime/bin/http.dart

Issue 10640017: Document the HttpClient uses KeepAlive, keeping sockets open for up to 60 seconds after a connectio… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review update. Created 8 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/http.dart
diff --git a/runtime/bin/http.dart b/runtime/bin/http.dart
index d18ed339d2eb0ded2678f0d3d9e56cd026d5922a..be5d21f5f3d4bb76b4320ef202eebe95ec7606cd 100644
--- a/runtime/bin/http.dart
+++ b/runtime/bin/http.dart
@@ -623,7 +623,13 @@ interface HttpResponse default _HttpResponse {
/**
- * HTTP client factory.
+ * HTTP client factory. The [HttpClient] handles all the sockets associated
+ * with the [HttpClientConnection]s and when the endpoint supports it, it will
+ * try to reuse opened sockets for several requests to support HTTP 1.1
+ * persistent connections. This means that sockets will be kept open for some
+ * time after a requests have completed, unless HTTP procedures indicate that it
+ * must be closed as part of completing the request. Use [:HttpClient.shutdown:]
+ * to force close the idle sockets.
*/
interface HttpClient default _HttpClient {
static final int DEFAULT_HTTP_PORT = 80;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698