diff options
author | 2021-06-02 18:16:19 +0000 | |
---|---|---|
committer | 2021-06-02 18:17:51 +0000 | |
commit | 103424e021792e9e92728ff1d9a657a2f9ecd174 (patch) | |
tree | d9c766df473f9a4867dff9b9135542cd61a65fd3 /libs/binder/RpcServer.cpp | |
parent | e54384bbd4d4c3b433b180e8f25c15266ae21228 (diff) |
libbinder: RPC more symmetrical max threads
Now, RpcServer and RpcSession both keep track of their max threads using
the same variable, and the server can therefore request the number of
reverse connections possible.
Bug: 185167543
Test: N/A
Change-Id: Ieaff69c8c2da2faf7598aed7e862601a1fcd7a00
Diffstat (limited to 'libs/binder/RpcServer.cpp')
-rw-r--r-- | libs/binder/RpcServer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/binder/RpcServer.cpp b/libs/binder/RpcServer.cpp index b146bb063e..5ffee0600f 100644 --- a/libs/binder/RpcServer.cpp +++ b/libs/binder/RpcServer.cpp @@ -280,6 +280,7 @@ void RpcServer::establishConnection(sp<RpcServer>&& server, base::unique_fd clie server->mSessionIdCounter++; session = RpcSession::make(); + session->setMaxThreads(server->mMaxThreads); session->setForServer(server, sp<RpcServer::EventListener>::fromExisting( static_cast<RpcServer::EventListener*>(server.get())), |