Libstatspull: decrease default pull timeout to 2s

Decrease the default pull timeout to 2 seconds.

Test: atest LibStatsPullTests
Test: atest libstatspull_test
Bug: 154056912
Change-Id: I8f7660de64e8c74a8c7ce7d252369c0456895e3b
This commit is contained in:
Tej Singh 2020-05-21 19:34:09 -07:00
parent 9113e7be95
commit 00ffb6c77e
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ AStatsEvent* AStatsEventList_addStatsEvent(AStatsEventList* pull_data) {
}
static const int64_t DEFAULT_COOL_DOWN_MILLIS = 1000LL; // 1 second.
static const int64_t DEFAULT_TIMEOUT_MILLIS = 10000LL; // 10 seconds.
static const int64_t DEFAULT_TIMEOUT_MILLIS = 2000LL; // 2 seconds.
struct AStatsManager_PullAtomMetadata {
int64_t cool_down_millis;

View file

@ -21,7 +21,7 @@
namespace {
static const int64_t DEFAULT_COOL_DOWN_MILLIS = 1000LL; // 1 second.
static const int64_t DEFAULT_TIMEOUT_MILLIS = 10000LL; // 10 seconds.
static const int64_t DEFAULT_TIMEOUT_MILLIS = 2000LL; // 2 seconds.
} // anonymous namespace