| Index: net/base/ssl_client_socket_mac.cc
|
| ===================================================================
|
| --- net/base/ssl_client_socket_mac.cc (revision 12708)
|
| +++ net/base/ssl_client_socket_mac.cc (working copy)
|
| @@ -279,12 +279,6 @@
|
| return rv;
|
| }
|
|
|
| -int SSLClientSocketMac::ReconnectIgnoringLastError(
|
| - CompletionCallback* callback) {
|
| - // TODO(darin): implement me!
|
| - return ERR_FAILED;
|
| -}
|
| -
|
| void SSLClientSocketMac::Disconnect() {
|
| completed_handshake_ = false;
|
|
|
| @@ -451,7 +445,13 @@
|
|
|
| int SSLClientSocketMac::DoConnect() {
|
| next_state_ = STATE_CONNECT_COMPLETE;
|
| - return transport_->Connect(&io_callback_);
|
| +
|
| + // The caller has to make sure that the transport socket is connected. If
|
| + // it isn't, we will eventually fail when trying to negotiate an SSL session.
|
| + // But we cannot call transport_->Connect(), as we do not know if there is
|
| + // any proxy negotiation that needs to be performed prior to establishing
|
| + // the SSL session.
|
| + return OK;
|
| }
|
|
|
| int SSLClientSocketMac::DoConnectComplete(int result) {
|
|
|