| commit | 95d15e56fc1e45b1aa11e9ad6ce01f77f0a28c36 | [log] [tgz] |
|---|---|---|
| author | Yifan Hong <elsk@google.com> | Wed Aug 25 17:15:15 2021 -0700 |
| committer | Yifan Hong <elsk@google.com> | Wed Aug 25 17:41:40 2021 -0700 |
| tree | a8718a0219512ea367012118daf12efc697a05c6 | |
| parent | ab281ec6f1922fc5fd175223d739d01018131777 [diff] |
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