From 9f409f2e4c6e420ecce745868625d10a9b74dd33 Mon Sep 17 00:00:00 2001 From: Luke Huang Date: Tue, 12 Mar 2019 18:05:43 +0800 Subject: [PATCH] Enlarge cmd buffer size of FrameworkListener Only Netd and Logd use FrameworkListener currently. Run realted test to ensure anything are still fine. Bug: 126307309 Test: built, flashed, booted system/netd/tests/runtests.sh pass atest CtsLogdTestCases Change-Id: Iacd0cc13f23f457a0868a8a706080c3edc9a3cbd --- libsysutils/src/FrameworkListener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsysutils/src/FrameworkListener.cpp b/libsysutils/src/FrameworkListener.cpp index b07853a8e..523584a92 100644 --- a/libsysutils/src/FrameworkListener.cpp +++ b/libsysutils/src/FrameworkListener.cpp @@ -26,7 +26,7 @@ #include #include -static const int CMD_BUF_SIZE = 1024; +static const int CMD_BUF_SIZE = 4096; FrameworkListener::FrameworkListener(const char *socketName, bool withSeq) : SocketListener(socketName, true, withSeq) {