Raise native-crash socket timeout

Stack unwinding can sometimes legitimately take more than 2 seconds.

Bug 28210681

Change-Id: If6fb30c5111e9c85ce98d36a97faa0b5f21bc04d
This commit is contained in:
Christopher Tate
2016-04-22 15:27:10 -07:00
parent 6a4d9a3c9f
commit 404fd65e43

View File

@@ -49,8 +49,8 @@ final class NativeCrashListener extends Thread {
static final String DEBUGGERD_SOCKET_PATH = "/data/system/ndebugsocket";
// Use a short timeout on socket operations and abandon the connection
// on hard errors
static final long SOCKET_TIMEOUT_MILLIS = 2000; // 2 seconds
// on hard errors, just in case debuggerd goes out to lunch.
static final long SOCKET_TIMEOUT_MILLIS = 10000; // 10 seconds
final ActivityManagerService mAm;