Index: net/socket/tcp_client_socket_win.h |
diff --git a/net/socket/tcp_client_socket_win.h b/net/socket/tcp_client_socket_win.h |
index 26c8b9feff2ba67734d7de458dc17fa7f13f0927..99042505b9a032ab4b7991045857008cb91bbefb 100644 |
--- a/net/socket/tcp_client_socket_win.h |
+++ b/net/socket/tcp_client_socket_win.h |
@@ -32,9 +32,10 @@ class NET_EXPORT TCPClientSocketWin : public StreamSocket, |
// AdoptSocket causes the given, connected socket to be adopted as a TCP |
// socket. This object must not be connected. This object takes ownership of |
- // the given socket and then acts as if Connect() had been called. This |
- // function is used by TCPServerSocket() to adopt accepted connections |
- // and for testing. |
+ // the given socket and then acts as if Connect() had been called. On failure, |
+ // the given socket is closed. |
+ // This function is used by TCPServerSocket to adopt accepted connections and |
+ // for testing. |
int AdoptSocket(SOCKET socket); |
// Binds the socket to a local IP address and port. |