| Index: net/socket/stream_listen_socket.cc
|
| diff --git a/net/socket/stream_listen_socket.cc b/net/socket/stream_listen_socket.cc
|
| index d17ce75fec13cb91864d2832865a5cf033397622..140434a6b07b722baa2ffe72dd4ae1e6e9847768 100644
|
| --- a/net/socket/stream_listen_socket.cc
|
| +++ b/net/socket/stream_listen_socket.cc
|
| @@ -74,7 +74,8 @@ StreamListenSocket::~StreamListenSocket() {
|
| #endif
|
| }
|
|
|
| -void StreamListenSocket::Send(const char* bytes, int len,
|
| +void StreamListenSocket::Send(const char* bytes,
|
| + int len,
|
| bool append_linefeed) {
|
| SendInternal(bytes, len);
|
| if (append_linefeed)
|
| @@ -127,7 +128,7 @@ SocketDescriptor StreamListenSocket::AcceptSocket() {
|
| }
|
|
|
| void StreamListenSocket::SendInternal(const char* bytes, int len) {
|
| - char* send_buf = const_cast<char *>(bytes);
|
| + char* send_buf = const_cast<char*>(bytes);
|
| int len_left = len;
|
| while (true) {
|
| int sent = HANDLE_EINTR(send(socket_, send_buf, len_left, 0));
|
| @@ -186,8 +187,8 @@ void StreamListenSocket::Read() {
|
| break;
|
| }
|
| } else if (len == 0) {
|
| - // In Windows, Close() is called by OnObjectSignaled. In POSIX, we need
|
| - // to call it here.
|
| +// In Windows, Close() is called by OnObjectSignaled. In POSIX, we need
|
| +// to call it here.
|
| #if defined(OS_POSIX)
|
| Close();
|
| #endif
|
|
|