Avoid array usage in handleConnectionServiceDeath.

When we trying to create a new array by using an array size returned
from a java Collection, we may get weird NegativeArraySizeException.
Instead of create a pending response array, directly use an iterator for
the loop to mark connection as failed.

Bug: b/298029420
Test: atest CreateConnectionProcessorTest
Change-Id: I6ba6b7d7ba12469b1fad3b21531ca8d8f6f7a785
1 file changed