mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 07:35:24 +02:00
[220123][dstore] Configurable timeout on irresponsiveness
This commit is contained in:
parent
4032fdb05c
commit
14a48792bd
1 changed files with 8 additions and 1 deletions
|
@ -341,7 +341,14 @@ public class XMLparser
|
|||
|
||||
if (_isKeepAliveEnabled && _isKeepAliveCompatible)
|
||||
{
|
||||
socket.setSoTimeout(IO_SOCKET_READ_TIMEOUT);
|
||||
if (_kart == null || !_kart.isAlive()){ // normal read wait
|
||||
socket.setSoTimeout(IO_SOCKET_READ_TIMEOUT);
|
||||
}
|
||||
else { // read wait time when awaking a keepalive response
|
||||
// otherwise, if IO_SOCKET_READ_TIMEOUT is bigger we don't get out of here until IO_SOCKET_READ_TIMEOUT is complete
|
||||
socket.setSoTimeout((int)KEEPALIVE_RESPONSE_TIMEOUT);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
in = reader.read();
|
||||
|
|
Loading…
Add table
Reference in a new issue