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

Unified Diff: net/socket/ssl_client_socket_mac.cc

Issue 155595: Properly let the SSL engine know when the underlying stream is closed.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « no previous file | 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_mac.cc
===================================================================
--- net/socket/ssl_client_socket_mac.cc (revision 20728)
+++ net/socket/ssl_client_socket_mac.cc (working copy)
@@ -716,8 +716,10 @@
if (rv < 0)
return OSStatusFromNetError(rv);
-
- return noErr;
+ else if (rv == 0) // stream closed
John Grabowski 2009/07/15 22:39:54 Shouldn't this be (rv == OK) to be consistent with
Avi (use Gerrit) 2009/07/15 22:47:08 The docs say "zero" is returned for end-of-stream
wtc 2009/07/16 00:22:50 Yes, Read() returns a byte count or error code, so
+ return errSSLClosedGraceful;
+ else
+ return noErr;
}
// static
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698