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

Commit 51989f79 authored by Steven Moreland's avatar Steven Moreland
Browse files

RPC Binder: patch sizes to 4096

We reduce down to 2048 on error just to keep that path alive.

Bug: 419364025
Bug: 423127919
Test: binderRpcTest
Test: binderRpcTest w/ RPC_FLAKE_PRONE true
Change-Id: I61a935e92d16c5a80ae03add5959ba2adfd60076
parent e62db90e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -61,8 +61,8 @@ status_t interruptableReadOrWrite(
    }

    // size to break up message - this is not reset for this read/write operation.
    constexpr size_t kChunkMax = 65536;
    const size_t kChunkMin = getpagesize(); // typical allocated granularity for sockets
    constexpr size_t kChunkMax = 4096;
    const size_t kChunkMin = 2048; // typical allocated granularity for sockets
    size_t chunkSize = kChunkMax;

    // b/419364025 - we have confirmed vhost-vsock ENOMEM for non-blocking sockets,