Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 95d15e56 authored by Yifan Hong's avatar Yifan Hong
Browse files

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
parent ab281ec6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment