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

Unified Diff: sdk/lib/io/http_impl.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/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index 846cd6b3a8193fb3f9acf0871fa0060dd13539ae..dd03aeb7218d5d54a50f19eb7534c2386965360f 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -2160,26 +2160,33 @@ class _HttpServer
Duration _idleTimeout;
Timer _idleTimer;
- static Future<HttpServer> bind(address, int port, int backlog) {
- return ServerSocket.bind(address, port, backlog: backlog).then((socket) {
- return new _HttpServer._(socket, true);
- });
+ static Future<HttpServer> bind(
+ address, int port, int backlog, bool v6Only, bool shared) {
+ return ServerSocket.bind(
+ address, port, backlog: backlog, v6Only: v6Only, shared: shared)
+ .then((socket) {
+ return new _HttpServer._(socket, true);
+ });
}
static Future<HttpServer> bindSecure(address,
int port,
int backlog,
+ bool v6Only,
String certificate_name,
- bool requestClientCertificate) {
+ bool requestClientCertificate,
+ bool shared) {
return SecureServerSocket.bind(
address,
port,
certificate_name,
backlog: backlog,
- requestClientCertificate: requestClientCertificate)
- .then((socket) {
- return new _HttpServer._(socket, true);
- });
+ v6Only: v6Only,
+ requestClientCertificate: requestClientCertificate,
+ shared: shared)
+ .then((socket) {
+ return new _HttpServer._(socket, true);
+ });
}
_HttpServer._(this._serverSocket, this._closeServer) {

Powered by Google App Engine
This is Rietveld 408576698