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

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

Issue 925403002: Add the shared flag to HttpServer as well (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
Index: sdk/lib/io/secure_server_socket.dart
diff --git a/sdk/lib/io/secure_server_socket.dart b/sdk/lib/io/secure_server_socket.dart
index 2a7341811aedfb6365fba92a260db4b93570faeb..b4a7ea46006364f36ca4a14b4d8b946eb569e2f7 100644
--- a/sdk/lib/io/secure_server_socket.dart
+++ b/sdk/lib/io/secure_server_socket.dart
@@ -58,6 +58,14 @@ class SecureServerSocket extends Stream<SecureSocket> {
* To check whether a client certificate was received, check
* SecureSocket.peerCertificate after connecting. If no certificate
* was received, the result will be null.
+ *
+ * The optional argument [shared] specify whether additional binds
+ * to the same `address`, `port` and `v6Only` combination is
+ * possible from the same Dart process. If `shared` is `true` and
+ * additional binds are preformed, then the incoming (incoming)
+ * connections will be distributed between that set
+ * `SecureServerSocket`s. One way of using this is to have number of
+ * isolates between which incoming connections are distributed.
kustermann 2015/02/17 11:30:56 preformed -> performed remove "(incoming)"
Søren Gjesse 2015/02/17 12:53:10 Done.
*/
static Future<SecureServerSocket> bind(
address,
@@ -185,6 +193,14 @@ class RawSecureServerSocket extends Stream<RawSecureSocket> {
* need to specify both. To check whether a client certificate was received,
* check SecureSocket.peerCertificate after connecting. If no certificate
* was received, the result will be null.
+ *
+ * The optional argument [shared] specify whether additional binds
+ * to the same `address`, `port` and `v6Only` combination is
+ * possible from the same Dart process. If `shared` is `true` and
+ * additional binds are preformed, then the incoming (accepted)
+ * connections will be distributed between that set
+ * `RawSecureServerSocket`s. One way of using this is to have number
+ * of isolates between which incoming connections are distributed.
*/
static Future<RawSecureServerSocket> bind(
address,

Powered by Google App Engine
This is Rietveld 408576698