Index: net/socket/tcp_client_socket_libevent.h |
diff --git a/net/socket/tcp_client_socket_libevent.h b/net/socket/tcp_client_socket_libevent.h |
index e5a0d8deab4cb2b28ded2e6d25fd8b77cfcdb95f..2618b0813d8d4daf54c3271d2c003e65bdce6237 100644 |
--- a/net/socket/tcp_client_socket_libevent.h |
+++ b/net/socket/tcp_client_socket_libevent.h |
@@ -33,9 +33,10 @@ class NET_EXPORT_PRIVATE TCPClientSocketLibevent : 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(int socket); |
// Binds the socket to a local IP address and port. |