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

Unified Diff: net/server/http_server.cc

Issue 594393002: Add net::HttpServer::Delegate::OnConnect() function and set ChromeDriver buffer sizes to 100 MB (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Put as much of the file as possible into the anonymous namespace Created 6 years, 3 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: net/server/http_server.cc
diff --git a/net/server/http_server.cc b/net/server/http_server.cc
index fb0dab37a4f44702ea25f2e603a5cba491f41d06..6c7ee52f31b3ed4c7ae8076cbcf063aec87d1491 100644
--- a/net/server/http_server.cc
+++ b/net/server/http_server.cc
@@ -153,7 +153,9 @@ int HttpServer::HandleAcceptResult(int rv) {
HttpConnection* connection =
new HttpConnection(++last_id_, accepted_socket_.Pass());
id_to_connection_[connection->id()] = connection;
- DoReadLoop(connection);
+ delegate_->OnConnect(connection->id());
+ if (!HasClosedConnection(connection))
+ DoReadLoop(connection);
return OK;
}

Powered by Google App Engine
This is Rietveld 408576698