mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-02 22:55:26 +02:00
-use constant rather than hardcoded string for tcpnodelay option
This commit is contained in:
parent
c29c43a9ac
commit
ae96ac4893
2 changed files with 10 additions and 1 deletions
|
@ -99,4 +99,12 @@ public interface IDataStoreSystemProperties {
|
|||
|
||||
// path to the server jars
|
||||
public static final String A_PLUGIN_PATH="A_PLUGIN_PATH"; //$NON-NLS-1$
|
||||
|
||||
|
||||
/*****************************************************************
|
||||
* TCPNODELAY option
|
||||
*****************************************************************/
|
||||
// specifying this as true disables Nagle's algorithm
|
||||
public static final String DSTORE_TCP_NO_DELAY="DSTORE_TCP_NO_DELAY"; //$NON-NLS-1$
|
||||
|
||||
}
|
||||
|
|
|
@ -37,6 +37,7 @@ import org.eclipse.dstore.core.java.IRemoteClassInstance;
|
|||
import org.eclipse.dstore.core.model.DE;
|
||||
import org.eclipse.dstore.core.model.DataElement;
|
||||
import org.eclipse.dstore.core.model.DataStore;
|
||||
import org.eclipse.dstore.internal.core.model.IDataStoreSystemProperties;
|
||||
|
||||
/**
|
||||
* This class is used for sending data to a socket in the DataStore
|
||||
|
@ -65,7 +66,7 @@ public class Sender implements ISender
|
|||
_xmlGenerator = new XMLgenerator(_dataStore);
|
||||
try
|
||||
{
|
||||
String noDelayStr = System.getProperty("DSTORE_TCP_NO_DELAY"); //$NON-NLS-1$
|
||||
String noDelayStr = System.getProperty(IDataStoreSystemProperties.DSTORE_TCP_NO_DELAY);
|
||||
if (noDelayStr != null && noDelayStr.length() > 0){
|
||||
try {
|
||||
boolean noDelay = Boolean.valueOf(noDelayStr).booleanValue();
|
||||
|
|
Loading…
Add table
Reference in a new issue