Chromium Code Reviews| Index: remoting/protocol/jingle_stream_connector.cc |
| diff --git a/remoting/protocol/jingle_stream_connector.cc b/remoting/protocol/jingle_stream_connector.cc |
| index 01ba8f8a48d0c235490ea3fee434358b84bcaf0a..4aba28064e7f470c80a844728b7a34c14eba2116 100644 |
| --- a/remoting/protocol/jingle_stream_connector.cc |
| +++ b/remoting/protocol/jingle_stream_connector.cc |
| @@ -98,6 +98,14 @@ void JingleStreamConnector::Connect(bool initiator, |
| } |
| bool JingleStreamConnector::EstablishTCPConnection(net::Socket* socket) { |
| + // Set options for the raw socket layer. |
| + // Send buffer size is set to match the PseudoTcp layer so that it can fit |
| + // all the data submitted by the PseudoTcp layer. |
| + socket->SetSendBufferSize(kTcpSendBufferSize); |
|
Sergey Ulanov
2011/08/03 19:12:08
I don't think it needs to be that big. Even 10k sh
|
| + // TODO(hclam): We should also set the receive buffer size once we can detect |
| + // the underlying socket is a TCP socket. |
| + |
| + // Set options for the TCP layer. |
| jingle_glue::PseudoTcpAdapter* adapter = |
| new jingle_glue::PseudoTcpAdapter(socket); |
| adapter->SetAckDelay(kTcpAckDelayMilliseconds); |