1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 06:55:23 +02:00

[282364] [dstore][multithread] timer-threads stay active after disconnect

This commit is contained in:
David McKnight 2011-01-21 15:51:01 +00:00
parent f9580fd596
commit 4977b4a81b

View file

@ -135,6 +135,9 @@ public class XMLparser
_maxBuffer = 100000;
_byteBuffer = new byte[_maxBuffer];
if (!_dataStore.isVirtual()){
setEnableKeepalive(true);
}
}
/**
@ -746,10 +749,15 @@ public class XMLparser
}
else if (_isKeepAlive)
{
if (VERBOSE_KEEPALIVE) System.out.println("KeepAlive request received, sending confirmation."); //$NON-NLS-1$
_dataStore.trace("KeepAlive request received, sending confirmation."); //$NON-NLS-1$
result.getDataStore().sendKeepAliveConfirmation();
_isKeepAlive = false;
if (_isKeepAliveEnabled){
if (VERBOSE_KEEPALIVE) System.out.println("KeepAlive request received, sending confirmation."); //$NON-NLS-1$
_dataStore.trace("KeepAlive request received, sending confirmation."); //$NON-NLS-1$
result.getDataStore().sendKeepAliveConfirmation();
_isKeepAlive = false;
}
else {
_dataStore.trace("KeepAlive disabled so not responding to keepalive request"); //$NON-NLS-1$
}
}
else if (_isKeepAliveConfirm )
{