diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2015-06-04 17:52:55 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2015-06-08 19:57:14 +0900 |
commit | 5bc64b847ac7490a93caf6b032b849aa75298db4 (patch) | |
tree | cc72c96aa41bec64ebdf15846dcbe56dd7eebb1f /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 48a423f04585da05b48df5425487a4185b7f37ec (diff) |
Correctly time out CMD_START_DHCP.
WifiStateMachine expects CMD_START_DHCP to time out after 30-40
seconds. Currently, DhcpClient imposes timeouts on DhcpInitState
and on DhcpRequestState, but not on the time it takes to get to
from CMD_START_DHCP to DhcpBoundState. So in theory the client
could oscillate between DhcpInitState and DhcpRequestState and
never time out.
Fix this by introducing a new oneshot timer that is set when DHCP
starts and is cancelled when it succeeds. CMD_RENEW_DHCP does not
need this because it's implemented using only one state, so the
oneshot timeout can be implemented using the state timeout.
Bug: 19704592
Change-Id: I6a5847a3dee23a2692237b8f3b3b0f8049da5140
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions