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

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

Issue 12614014: Add setNoDelay method on Socket/RawSocket. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 49071c0e0bb05519516d9b0807c4fac7c65dd24a..2de239fdf6b9a30ed1fd50d41636c7e374cbbed8 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -1226,6 +1226,7 @@ class _HttpClient implements HttpClient {
sendClientCertificate: true)
: Socket.connect(host, port))
.then((socket) {
+ socket.setNoDelay();
var connection = new _HttpClientConnection(key, socket, this);
_activeConnections.add(connection);
return new _ConnnectionInfo(connection, proxy);
@@ -1388,6 +1389,7 @@ class _HttpServer extends Stream<HttpRequest> implements HttpServer {
bool unsubscribeOnError}) {
_serverSocket.listen(
(Socket socket) {
+ socket.setNoDelay();
// Accept the client connection.
_HttpConnection connection = new _HttpConnection(socket, this);
_connections.add(connection);
« no previous file with comments | « runtime/bin/socket_win.cc ('k') | sdk/lib/io/secure_socket.dart » ('j') | sdk/lib/io/socket.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698