Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c82e7bcb authored by Luke Huang's avatar Luke Huang Committed by android-build-merger
Browse files

Merge "Correct buffer size limitation for DnsResolver API" am: 26a0272b

am: f8bfd723

Change-Id: If779ada4dbc1e67b28067235f5055d7f94692c69
parents 23723459 f8bfd723
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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));