mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-20 07:25:23 +02:00
[282364] [dstore][multithread] timer-threads stay active after disconnect
This commit is contained in:
parent
f9580fd596
commit
4977b4a81b
1 changed files with 14 additions and 6 deletions
|
@ -135,6 +135,9 @@ public class XMLparser
|
||||||
_maxBuffer = 100000;
|
_maxBuffer = 100000;
|
||||||
_byteBuffer = new byte[_maxBuffer];
|
_byteBuffer = new byte[_maxBuffer];
|
||||||
|
|
||||||
|
if (!_dataStore.isVirtual()){
|
||||||
|
setEnableKeepalive(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -746,11 +749,16 @@ public class XMLparser
|
||||||
}
|
}
|
||||||
else if (_isKeepAlive)
|
else if (_isKeepAlive)
|
||||||
{
|
{
|
||||||
|
if (_isKeepAliveEnabled){
|
||||||
if (VERBOSE_KEEPALIVE) System.out.println("KeepAlive request received, sending confirmation."); //$NON-NLS-1$
|
if (VERBOSE_KEEPALIVE) System.out.println("KeepAlive request received, sending confirmation."); //$NON-NLS-1$
|
||||||
_dataStore.trace("KeepAlive request received, sending confirmation."); //$NON-NLS-1$
|
_dataStore.trace("KeepAlive request received, sending confirmation."); //$NON-NLS-1$
|
||||||
result.getDataStore().sendKeepAliveConfirmation();
|
result.getDataStore().sendKeepAliveConfirmation();
|
||||||
_isKeepAlive = false;
|
_isKeepAlive = false;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
_dataStore.trace("KeepAlive disabled so not responding to keepalive request"); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (_isKeepAliveConfirm )
|
else if (_isKeepAliveConfirm )
|
||||||
{
|
{
|
||||||
if (VERBOSE_KEEPALIVE) System.out.println("KeepAlive confirmation received."); //$NON-NLS-1$
|
if (VERBOSE_KEEPALIVE) System.out.println("KeepAlive confirmation received."); //$NON-NLS-1$
|
||||||
|
|
Loading…
Add table
Reference in a new issue