Merge "Correct buffer size limitation for DnsResolver API" am: c586bdf976 am: 7077ae7361

am: 26052432e3

Change-Id: I87003ffa35babf38efd9f207809004422504d1ea
This commit is contained in:
Luke Huang
2019-05-02 01:54:50 -07:00
committed by android-build-merger

View File

@@ -49,8 +49,8 @@ int ifc_disable(const char *ifname);
namespace android {
constexpr int MAXPACKETSIZE = 8 * 1024;
// FrameworkListener limits the size of commands to 1024 bytes. TODO: fix this.
constexpr int MAXCMDSIZE = 1024;
// FrameworkListener limits the size of commands to 4096 bytes.
constexpr int MAXCMDSIZE = 4096;
static void throwErrnoException(JNIEnv* env, const char* functionName, int error) {
ScopedLocalRef<jstring> detailMessage(env, env->NewStringUTF(functionName));