|
|
@ -385,7 +385,8 @@ public abstract class BasePackPushConnection extends BasePackConnection implemen |
|
|
|
final int oldTimeout = timeoutIn.getTimeout(); |
|
|
|
final int oldTimeout = timeoutIn.getTimeout(); |
|
|
|
final int sendTime = (int) Math.min(packTransferTime, 28800000L); |
|
|
|
final int sendTime = (int) Math.min(packTransferTime, 28800000L); |
|
|
|
try { |
|
|
|
try { |
|
|
|
timeoutIn.setTimeout(10 * Math.max(sendTime, oldTimeout)); |
|
|
|
int timeout = 10 * Math.max(sendTime, oldTimeout); |
|
|
|
|
|
|
|
timeoutIn.setTimeout((timeout < 0) ? Integer.MAX_VALUE : timeout); |
|
|
|
return pckIn.readString(); |
|
|
|
return pckIn.readString(); |
|
|
|
} finally { |
|
|
|
} finally { |
|
|
|
timeoutIn.setTimeout(oldTimeout); |
|
|
|
timeoutIn.setTimeout(oldTimeout); |
|
|
|