binder: retry connect() on ECONNRESET for non-blocking sockets.

For non-blocking sockets, if connect() returns EAGAIN / EINPROGRESS, the
code calls getsockopt() to get the real error if connect() were called
with a blocking socket fd. If ECONNRESET is seen, also retry.

Test: binderRpcTest
Fixes: 197162885

Change-Id: I7c7b8cb105d0d334b75b883ffcff3b0c62337cf4
1 file changed