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

Unified Diff: net/socket/ssl_client_socket_pool.cc

Issue 364943002: Makes waiting SSLConnectJobs use the message loops to resume their connection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
« net/socket/ssl_client_socket_pool.h ('K') | « net/socket/ssl_client_socket_pool.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_pool.cc
diff --git a/net/socket/ssl_client_socket_pool.cc b/net/socket/ssl_client_socket_pool.cc
index 3032a08bf49203ef17ae9d8565de00a437b79013..39481748424a8f94fba0f74840584d3ad7336ff1 100644
--- a/net/socket/ssl_client_socket_pool.cc
+++ b/net/socket/ssl_client_socket_pool.cc
@@ -135,7 +135,7 @@ void SSLConnectJobMessenger::OnJobFailed() {
connecting_sockets_.push_back(ssl_socket);
pending_sockets_and_callbacks_.EraseFirstEntry();
MonitorConnectionResult(ssl_socket);
- cb.Run();
+ base::MessageLoopForIO::current()->PostTask(FROM_HERE, cb);
wtc 2014/07/08 17:37:03 IMPORTANT: please make sure the task won't run if
Ryan Sleevi 2014/07/08 19:36:53 Note: You should not use base::MessageLoopForIO di
mshelley 2014/07/09 21:53:06 So I think the issue that you're referring to coul
}
// Timeout for the SSL handshake portion of the connect.
« net/socket/ssl_client_socket_pool.h ('K') | « net/socket/ssl_client_socket_pool.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698