diff options
author | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-08 19:16:43 +0000 |
---|---|---|
committer | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-08 19:16:43 +0000 |
commit | d7fd17806126d4998ea0ac36eac95ea031761219 (patch) | |
tree | 363a1689a60dcf968281827d2128eb3546c7c605 /net/socket/ssl_client_socket_openssl.cc | |
parent | 243b4f0b3c3aa4e48064ae01337ba2554d367074 (diff) | |
download | chromium_src-d7fd17806126d4998ea0ac36eac95ea031761219.zip chromium_src-d7fd17806126d4998ea0ac36eac95ea031761219.tar.gz chromium_src-d7fd17806126d4998ea0ac36eac95ea031761219.tar.bz2 |
NetLog: Log net error codes on a lot of EndEvents.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6349083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74143 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/ssl_client_socket_openssl.cc')
-rw-r--r-- | net/socket/ssl_client_socket_openssl.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/socket/ssl_client_socket_openssl.cc b/net/socket/ssl_client_socket_openssl.cc index 169776a..e0534d0 100644 --- a/net/socket/ssl_client_socket_openssl.cc +++ b/net/socket/ssl_client_socket_openssl.cc @@ -625,8 +625,9 @@ int SSLClientSocketOpenSSL::Connect(CompletionCallback* callback) { // Set up new ssl object. if (!Init()) { - net_log_.EndEvent(NetLog::TYPE_SSL_CONNECT, NULL); - return ERR_UNEXPECTED; + int result = ERR_UNEXPECTED; + net_log_.EndEventWithNetErrorCode(NetLog::TYPE_SSL_CONNECT, result); + return result; } // Set SSL to client mode. Handshake happens in the loop below. @@ -637,7 +638,7 @@ int SSLClientSocketOpenSSL::Connect(CompletionCallback* callback) { if (rv == ERR_IO_PENDING) { user_connect_callback_ = callback; } else { - net_log_.EndEvent(NetLog::TYPE_SSL_CONNECT, NULL); + net_log_.EndEventWithNetErrorCode(NetLog::TYPE_SSL_CONNECT, rv); } return rv > OK ? OK : rv; @@ -989,7 +990,7 @@ void SSLClientSocketOpenSSL::DoConnectCallback(int rv) { void SSLClientSocketOpenSSL::OnHandshakeIOComplete(int result) { int rv = DoHandshakeLoop(result); if (rv != ERR_IO_PENDING) { - net_log_.EndEvent(NetLog::TYPE_SSL_CONNECT, NULL); + net_log_.EndEventWithNetErrorCode(NetLog::TYPE_SSL_CONNECT, rv); DoConnectCallback(rv); } } |