Enlarge command buffsize for async DNS API
Buffer size of FrameworkListener is enlarged to 4096,
update it accordingly.
Bug: 126307309
Test: built, flashed, booted
system/netd/tests/runtests.sh pass
atest CtsNativeNetDnsTestCases MultinetworkApiTest
Change-Id: I25479159e7b993fd3ed20fc58eb840b5b2f28ae6
diff --git a/client/NetdClient.cpp b/client/NetdClient.cpp
index fa45eb0..195c45d 100644
--- a/client/NetdClient.cpp
+++ b/client/NetdClient.cpp
@@ -42,7 +42,7 @@
namespace {
// Keep this in sync with CMD_BUF_SIZE in FrameworkListener.cpp.
-constexpr size_t MAX_CMD_SIZE = 1024;
+constexpr size_t MAX_CMD_SIZE = 4096;
std::atomic_uint netIdForProcess(NETID_UNSET);
std::atomic_uint netIdForResolv(NETID_UNSET);