From 34c9dffe2e0ad02c441098b960e4ff593748584e Mon Sep 17 00:00:00 2001 From: "avi@chromium.org" Date: Thu, 16 Jul 2009 12:25:32 +0000 Subject: Properly let the SSL engine know when the underlying stream is closed. BUG=http://crbug.com/14196 TEST=NONE (this fix is related to the bug but does not fix it) Review URL: http://codereview.chromium.org/155595 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20864 0039d316-1c4b-4281-b951-d872f2087c98 --- net/socket/ssl_client_socket_mac.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'net') diff --git a/net/socket/ssl_client_socket_mac.cc b/net/socket/ssl_client_socket_mac.cc index bd1f60d..db42c1a 100644 --- a/net/socket/ssl_client_socket_mac.cc +++ b/net/socket/ssl_client_socket_mac.cc @@ -716,8 +716,10 @@ OSStatus SSLClientSocketMac::SSLReadCallback(SSLConnectionRef connection, if (rv < 0) return OSStatusFromNetError(rv); - - return noErr; + else if (rv == 0) // stream closed + return errSSLClosedGraceful; + else + return noErr; } // static -- cgit v1.1