proxy progress - network connector should give up on connection faster

This commit is contained in:
rusefi 2020-07-30 23:56:18 -04:00
parent 0944e0ff6d
commit 856a0f0a6e
1 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
package com.rusefi.proxy;
import com.rusefi.Timeouts;
import com.rusefi.io.tcp.BinaryProtocolProxy;
import com.rusefi.proxy.client.LocalApplicationProxyContext;
import com.rusefi.tools.online.ProxyClient;
public class NetworkConnectorContext {
@ -13,8 +13,13 @@ public class NetworkConnectorContext {
return Timeouts.CMD_TIMEOUT;
}
/**
* Application is supposed to be constantly poking the controller one way or another
*
* @see LocalApplicationProxyContext#gaugePokingPeriod()
*/
public int consecutivePacketTimeout() {
return BinaryProtocolProxy.USER_IO_TIMEOUT;
return 30 * Timeouts.SECOND;
}
public int serverPortForControllers() {