From 70cbae67f090da022412d43f86684a6a026847cf Mon Sep 17 00:00:00 2001 From: "wtc@chromium.org" Date: Wed, 21 Jan 2009 19:16:05 +0000 Subject: Return ERR_SSL_PROTOCOL_ERROR instead of the default ERR_FAILED when we read EOF during the SSL handshake. The ERR_SSL_PROTOCOL_ERROR error code will allow the TLS-intolerant server handling code in http_network_transaction.cc to kick in if necessary. R=eroman BUG=5894 Review URL: http://codereview.chromium.org/18606 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8377 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/ssl_client_socket_win.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/base/ssl_client_socket_win.cc b/net/base/ssl_client_socket_win.cc index 9f3248b..beeaba9 100644 --- a/net/base/ssl_client_socket_win.cc +++ b/net/base/ssl_client_socket_win.cc @@ -631,7 +631,7 @@ int SSLClientSocketWin::DoHandshakeReadComplete(int result) { if (result < 0) return result; if (result == 0 && !ignore_ok_result_) - return ERR_FAILED; // Incomplete response :( + return ERR_SSL_PROTOCOL_ERROR; // Incomplete response :( ignore_ok_result_ = false; -- cgit v1.1