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

Unified Diff: net/socket/client_socket_handle.cc

Issue 2870030: Implement SSLClientSocketPool. (Closed)
Patch Set: Rebase and fix mac compile error Created 10 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
Index: net/socket/client_socket_handle.cc
diff --git a/net/socket/client_socket_handle.cc b/net/socket/client_socket_handle.cc
index fab8d3e26c3f9bc30300400737c944695f5e22c5..73142bfcb9502b27b8a9d9240b5d2ca371d599d1 100644
--- a/net/socket/client_socket_handle.cc
+++ b/net/socket/client_socket_handle.cc
@@ -17,7 +17,8 @@ ClientSocketHandle::ClientSocketHandle()
: socket_(NULL),
is_reused_(false),
ALLOW_THIS_IN_INITIALIZER_LIST(
- callback_(this, &ClientSocketHandle::OnIOComplete)) {}
+ callback_(this, &ClientSocketHandle::OnIOComplete)),
+ is_ssl_error_(false) {}
ClientSocketHandle::~ClientSocketHandle() {
Reset();
@@ -25,6 +26,7 @@ ClientSocketHandle::~ClientSocketHandle() {
void ClientSocketHandle::Reset() {
ResetInternal(true);
+ ResetErrorState();
}
void ClientSocketHandle::ResetInternal(bool cancel) {
@@ -53,6 +55,11 @@ void ClientSocketHandle::ResetInternal(bool cancel) {
pool_id_ = -1;
}
+void ClientSocketHandle::ResetErrorState() {
+ is_ssl_error_ = false;
+ tunnel_auth_response_info_ = HttpResponseInfo();
+}
+
LoadState ClientSocketHandle::GetLoadState() const {
CHECK(!is_initialized());
CHECK(!group_name_.empty());

Powered by Google App Engine
This is Rietveld 408576698