Fixes ADB crash on Windows due to large number of connections. do not merge.
The reason for the crash is that ADB on Windows uses WaitForMultipleObjects to wait on connection events. When number of connections exceeds 64, ADB crashes, because WaitForMultipleObjects API doesn't support more than 64 handles. This CL contains a fixer routine that allows waiting on an arbitrary number of handles. (cherry picked from commit ac52833e) Change-Id: I8ad264765e5b38d01a31e42b445f97ea86e49948
Loading
Please register or sign in to comment