Loading libs/binder/RpcState.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -394,6 +394,12 @@ static inline status_t handleRpcError(const std::unique_ptr<RpcTransport>& trans transport.get(), statusToString(status).c_str()); } (void)session->shutdownAndWait(false); if (status == -ECONNRESET) { LOG_RPC_DETAIL("Converting -ECONNRESET to DEAD_OBJECT."); status = DEAD_OBJECT; } return status; } Loading libs/binder/tests/binderRpcTest.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -734,8 +734,7 @@ TEST_P(BinderRpc, SendTooLargeVector) { std::vector<uint8_t> result; status_t res = rootIface2->repeatBytes(kTestValue, &result).transactionError(); // TODO(b/392717039): consistent error results always EXPECT_TRUE(res == -ECONNRESET || res == DEAD_OBJECT) << statusToString(res); EXPECT_EQ(res, DEAD_OBJECT) << statusToString(res); // died, so remove it for checks in destructor of proc proc.proc->sessions.erase(proc.proc->sessions.begin() + 1); Loading Loading
libs/binder/RpcState.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -394,6 +394,12 @@ static inline status_t handleRpcError(const std::unique_ptr<RpcTransport>& trans transport.get(), statusToString(status).c_str()); } (void)session->shutdownAndWait(false); if (status == -ECONNRESET) { LOG_RPC_DETAIL("Converting -ECONNRESET to DEAD_OBJECT."); status = DEAD_OBJECT; } return status; } Loading
libs/binder/tests/binderRpcTest.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -734,8 +734,7 @@ TEST_P(BinderRpc, SendTooLargeVector) { std::vector<uint8_t> result; status_t res = rootIface2->repeatBytes(kTestValue, &result).transactionError(); // TODO(b/392717039): consistent error results always EXPECT_TRUE(res == -ECONNRESET || res == DEAD_OBJECT) << statusToString(res); EXPECT_EQ(res, DEAD_OBJECT) << statusToString(res); // died, so remove it for checks in destructor of proc proc.proc->sessions.erase(proc.proc->sessions.begin() + 1); Loading