mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 14:25:37 +02:00
[347412][dstore] Need an option to set TCP NODELAYACKS
This commit is contained in:
parent
f39c9ffd28
commit
5e56d4113d
1 changed files with 14 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
* David McKnight (IBM) [305218][dstore] problem reading double-byte characters through data socket layer
|
||||
* David McKnight (IBM) [307541][dstore] fix for Bug 305218 breaks RDz connections
|
||||
* David McKnight (IBM) [343939][dstore][windows] DBCS3.7 DBCS characters are corrupted in Files
|
||||
* David McKnight (IBM) [347412][dstore] Need an option to set TCP NODELAYACKS
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.dstore.internal.core.util;
|
||||
|
@ -58,11 +59,24 @@ public class Sender implements ISender
|
|||
public Sender(Socket socket, DataStore dataStore)
|
||||
{
|
||||
_socket = socket;
|
||||
|
||||
_dataStore = dataStore;
|
||||
|
||||
_xmlGenerator = new XMLgenerator(_dataStore);
|
||||
try
|
||||
{
|
||||
String noDelayStr = System.getProperty("DSTORE_TCP_NO_DELAY"); //$NON-NLS-1$
|
||||
if (noDelayStr != null && noDelayStr.length() > 0){
|
||||
try {
|
||||
boolean noDelay = Boolean.parseBoolean(noDelayStr);
|
||||
_socket.setTcpNoDelay(noDelay);
|
||||
|
||||
noDelay = _socket.getTcpNoDelay();
|
||||
_dataStore.trace("tcp no delay set to " + noDelay); //$NON-NLS-1$
|
||||
}
|
||||
catch (Exception e){
|
||||
}
|
||||
}
|
||||
int bufferSize = _socket.getSendBufferSize();
|
||||
_xmlGenerator.setBufferSize(bufferSize);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue