Allow more time for HttpPost watchdog timeout

* The current timeout is triggering more often than it should, which
  causes delays and inefficiency.  Increase it from 10 to 30 seconds.

Bug: 2615293
Change-Id: I54b74cc7ad9f1c8286af49b957584670c071640c
This commit is contained in:
Marc Blank 2010-04-27 23:13:32 -07:00
parent 4713110b02
commit 8f9e872eaf

View File

@ -128,7 +128,7 @@ public class EasSyncService extends AbstractSyncService {
// Connection timeout is the time given to connect to the server before reporting an IOException // Connection timeout is the time given to connect to the server before reporting an IOException
static private final int CONNECTION_TIMEOUT = 20*SECONDS; static private final int CONNECTION_TIMEOUT = 20*SECONDS;
// The extra time allowed beyond the COMMAND_TIMEOUT before which our watchdog alarm triggers // The extra time allowed beyond the COMMAND_TIMEOUT before which our watchdog alarm triggers
static private final int WATCHDOG_TIMEOUT_ALLOWANCE = 10*SECONDS; static private final int WATCHDOG_TIMEOUT_ALLOWANCE = 30*SECONDS;
static private final String AUTO_DISCOVER_SCHEMA_PREFIX = static private final String AUTO_DISCOVER_SCHEMA_PREFIX =
"http://schemas.microsoft.com/exchange/autodiscover/mobilesync/"; "http://schemas.microsoft.com/exchange/autodiscover/mobilesync/";