1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +02:00

[228334][api][breaking][dstore] Default DataStore connection timeout is too short

This commit is contained in:
David McKnight 2008-05-01 13:11:03 +00:00
parent 7b29453c3d
commit 67c281940a
2 changed files with 29 additions and 6 deletions

View file

@ -58,22 +58,22 @@ public class Activator extends SystemBasePlugin {
public void initializeDefaultPreferences() {
IPreferenceStore store = RSEUIPlugin.getDefault().getPreferenceStore();
store.setDefault(IUniversalDStoreConstants.RESID_PREF_SOCKET_TIMEOUT, 5000);
store.setDefault(IUniversalDStoreConstants.RESID_PREF_SOCKET_TIMEOUT, IDStoreDefaultPreferenceConstants.DEFAULT_PREF_SOCKET_TIMEOUT);
// do keepalive
store.setValue(IUniversalDStoreConstants.RESID_PREF_DO_KEEPALIVE, true);
store.setValue(IUniversalDStoreConstants.RESID_PREF_DO_KEEPALIVE, IDStoreDefaultPreferenceConstants.DEFAULT_PREF_DO_KEEPALIVE);
// socket read timeout
store.setDefault(IUniversalDStoreConstants.RESID_PREF_SOCKET_READ_TIMEOUT, 3600000);
store.setDefault(IUniversalDStoreConstants.RESID_PREF_SOCKET_READ_TIMEOUT, IDStoreDefaultPreferenceConstants.DEFAULT_PREF_SOCKET_READ_TIMEOUT);
// keepalive response timeout
store.setDefault(IUniversalDStoreConstants.RESID_PREF_KEEPALIVE_RESPONSE_TIMEOUT, 60000);
store.setDefault(IUniversalDStoreConstants.RESID_PREF_KEEPALIVE_RESPONSE_TIMEOUT, IDStoreDefaultPreferenceConstants.DEFAULT_PREF_KEEPALIVE_RESPONSE_TIMEOUT);
// show mismatched server warning
store.setDefault(IUniversalDStoreConstants.ALERT_MISMATCHED_SERVER, true);
store.setDefault(IUniversalDStoreConstants.ALERT_MISMATCHED_SERVER, IDStoreDefaultPreferenceConstants.DEFAULT_ALERT_MISMATCHED_SERVER);
// cache remote classes
store.setDefault(IUniversalDStoreConstants.RESID_PREF_CACHE_REMOTE_CLASSES, true);
store.setDefault(IUniversalDStoreConstants.RESID_PREF_CACHE_REMOTE_CLASSES, IDStoreDefaultPreferenceConstants.DEFAULT_PREF_CACHE_REMOTE_CLASSES);
}
/**

View file

@ -0,0 +1,23 @@
/********************************************************************************
* Copyright (c) 2008 IBM Corporation. All rights reserved.
* This program and the accompanying materials are made available under the terms
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Initial Contributors:
* The following IBM employees contributed to the Remote System Explorer
* component that contains this file: David McKnight.
*
* Contributors:
* David McKnight (IBM) - [228334][api][breaking][dstore] Default DataStore connection timeout is too short
********************************************************************************/
package org.eclipse.rse.internal.connectorservice.dstore;
public interface IDStoreDefaultPreferenceConstants {
public static final boolean DEFAULT_PREF_CACHE_REMOTE_CLASSES = true;
public static final int DEFAULT_PREF_SOCKET_TIMEOUT = 5000;
public static final boolean DEFAULT_PREF_DO_KEEPALIVE = true;
public static final int DEFAULT_PREF_KEEPALIVE_RESPONSE_TIMEOUT = 60000;
public static final int DEFAULT_PREF_SOCKET_READ_TIMEOUT = 3600000;
public static final boolean DEFAULT_ALERT_MISMATCHED_SERVER = true;
}