mirror of
https://github.com/correl/mage.git
synced 2025-04-09 09:11:05 -09:00
increate client ping period and timeout - reduces false disconnects
This commit is contained in:
parent
58fd018db2
commit
a3d1de7850
1 changed files with 3 additions and 2 deletions
|
@ -135,8 +135,8 @@ public class Session {
|
|||
callbackClient = new Client(clientLocator, "callback", clientMetadata);
|
||||
|
||||
Map<String, String> listenerMetadata = new HashMap<String, String>();
|
||||
listenerMetadata.put(ConnectionValidator.VALIDATOR_PING_PERIOD, "5000");
|
||||
listenerMetadata.put(ConnectionValidator.VALIDATOR_PING_TIMEOUT, "2000");
|
||||
listenerMetadata.put(ConnectionValidator.VALIDATOR_PING_PERIOD, "10000");
|
||||
listenerMetadata.put(ConnectionValidator.VALIDATOR_PING_TIMEOUT, "9000");
|
||||
callbackClient.connect(new ClientConnectionListener(), listenerMetadata);
|
||||
|
||||
Map<String, String> callbackMetadata = new HashMap<String, String>();
|
||||
|
@ -184,6 +184,7 @@ public class Session {
|
|||
if (connection == null)
|
||||
return;
|
||||
try {
|
||||
|
||||
callbackClient.disconnect();
|
||||
TransporterClient.destroyTransporterClient(server);
|
||||
} catch (Throwable ex) {
|
||||
|
|
Loading…
Add table
Reference in a new issue