Chromium Code Reviews| 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 |