diff options
author | 2023-03-01 01:25:33 +0000 | |
---|---|---|
committer | 2023-03-01 21:25:17 +0000 | |
commit | feb13e8bfe5d9e23563761f042fcf19b7b008d4d (patch) | |
tree | 509ab35d45a55dea510e433a8e663ad37129b204 /libs/binder/ServiceManagerHost.cpp | |
parent | 11a9b4824010d4ef39f9f04eb10d98adcd91d242 (diff) |
RPC Binder: setMaxOutgoing{Threads,Connections}
This API is updated to emphasize that it is placing a limit
on the number of connections that will be started corresponding
to threads in a remote pool. These connections won't actually
correspond to threads in the process that this API is called.
Documentation has also been updated to clarify a few questions
from an internal discussion forum.
Fixes: 270374393
Test: binderRpcTest
Change-Id: Ia0d9f0d0f42f58a2c63bf506476b33985f091a34
Diffstat (limited to 'libs/binder/ServiceManagerHost.cpp')
-rw-r--r-- | libs/binder/ServiceManagerHost.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/binder/ServiceManagerHost.cpp b/libs/binder/ServiceManagerHost.cpp index 194254ac69..2b67f030e0 100644 --- a/libs/binder/ServiceManagerHost.cpp +++ b/libs/binder/ServiceManagerHost.cpp @@ -159,8 +159,8 @@ sp<IBinder> getDeviceService(std::vector<std::string>&& serviceDispatcherArgs, LOG_ALWAYS_FATAL_IF(!forwardResult->hostPort().has_value()); auto rpcSession = RpcSession::make(); - if (options.maxOutgoingThreads.has_value()) { - rpcSession->setMaxOutgoingThreads(*options.maxOutgoingThreads); + if (options.maxOutgoingConnections.has_value()) { + rpcSession->setMaxOutgoingConnections(*options.maxOutgoingConnections); } if (status_t status = rpcSession->setupInetClient("127.0.0.1", *forwardResult->hostPort()); |