1
0
Fork 0
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:
David McKnight 2008-03-10 19:40:06 +00:00
parent 4032fdb05c
commit 14a48792bd

View file

@ -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();